fix: Video extraction from playlists with CRLF (#3078)
This commit is contained in:
parent
419d9a7a64
commit
463e48dd6c
@ -132,7 +132,7 @@ class PlaylistUtils(private val client: OkHttpClient, private val headers: Heade
|
|||||||
.substringBefore(",") + "p"
|
.substringBefore(",") + "p"
|
||||||
|
|
||||||
val videoUrl = it.substringAfter("\n").substringBefore("\n").let { url ->
|
val videoUrl = it.substringAfter("\n").substringBefore("\n").let { url ->
|
||||||
getAbsoluteUrl(url, playlistUrl, masterUrlBasePath)
|
getAbsoluteUrl(url, playlistUrl, masterUrlBasePath)?.trimEnd()
|
||||||
} ?: return@mapNotNull null
|
} ?: return@mapNotNull null
|
||||||
|
|
||||||
Video(
|
Video(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user