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"
|
||||
|
||||
val videoUrl = it.substringAfter("\n").substringBefore("\n").let { url ->
|
||||
getAbsoluteUrl(url, playlistUrl, masterUrlBasePath)
|
||||
getAbsoluteUrl(url, playlistUrl, masterUrlBasePath)?.trimEnd()
|
||||
} ?: return@mapNotNull null
|
||||
|
||||
Video(
|
||||
|
Loading…
x
Reference in New Issue
Block a user