fix(en/hstream): Fix subtitles (#2549)

This commit is contained in:
Claudemirovsky 2023-11-25 06:39:52 -03:00 committed by GitHub
parent 1750b3d4ea
commit 135faf95f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ ext {
extName = 'Hstream'
pkgNameSuffix = 'en.hstream'
extClass = '.Hstream'
extVersionCode = 6
extVersionCode = 7
libVersion = '13'
containsNsfw = true
}

View File

@ -173,7 +173,7 @@ class Hstream : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
.parseAs<PlayerApiResponse>()
val urlBase = data.stream_domains.random() + "/" + data.stream_url
val subtitleList = listOf(Track(urlBase, "English"))
val subtitleList = listOf(Track("$urlBase/eng.ass", "English"))
val resolutions = listOfNotNull("720", "1080", if (data.resolution == "4k") "2160" else null)
return resolutions.map { resolution ->