fix: Video extraction from playlists with CRLF (#3078)

This commit is contained in:
Edgard Lorraine Messias 2024-03-29 13:05:02 -03:00 committed by GitHub
parent 419d9a7a64
commit 463e48dd6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(