We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 214302d commit 03be7f6Copy full SHA for 03be7f6
1 file changed
app/src/main/java/uk/akane/libphonograph/manipulator/PlaylistSerializer.kt
@@ -128,7 +128,7 @@ object PlaylistSerializer {
128
}
129
val uriLine = Uri.decode(it)
130
val link = listOf(Entry.parseUri(outFile, uriLine))
131
- val durationSeconds = extInfMatch?.groupValues?.get(1)?.toLong()
+ val durationSeconds = extInfMatch?.groupValues?.get(1)?.toLongOrNull()
132
val tvKeys = extInfMatch?.groupValues?.get(2)?.let {
133
tvKeysRegex.findAll(it).map { match ->
134
val key = match.groupValues[1]
@@ -1254,4 +1254,4 @@ object PlaylistSerializer {
1254
1255
1256
class UnsupportedPlaylistFormatException(extension: String) : Exception(extension)
1257
-}
+}
0 commit comments