feat(src/hi): New source YoMovies (#1935)

This commit is contained in:
Secozzi
2023-07-21 10:01:34 +00:00
committed by GitHub
parent b6660f39de
commit 72fe14e618
14 changed files with 603 additions and 4 deletions

View File

@ -74,6 +74,7 @@ class StreamSBExtractor(private val client: OkHttpClient) {
suffix: String = "",
common: Boolean = true,
manualData: Boolean = false,
externalSubs: List<Track> = emptyList(),
): List<Video> {
val trimmedUrl = url.trim() // Prevents some crashes
val newHeaders = if (manualData) {
@ -133,7 +134,7 @@ class StreamSBExtractor(private val client: OkHttpClient) {
}
}
val videoUrl = it.substringAfter("\n").substringBefore("\n")
Video(videoUrl, quality, videoUrl, headers = newHeaders, subtitleTracks = subtitleList, audioTracks = audioList)
Video(videoUrl, quality, videoUrl, headers = newHeaders, subtitleTracks = subtitleList + externalSubs, audioTracks = audioList)
}
}.getOrNull() ?: emptyList<Video>()
}