Kamyroll: Remove softsub when hardsub is available (#1198)

This commit is contained in:
Samfun75
2023-01-21 23:23:37 +03:00
committed by GitHub
parent fed99f9fde
commit 0058905f39
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Kamyroll'
pkgNameSuffix = 'all.kamyroll'
extClass = '.Kamyroll'
extVersionCode = 7
extVersionCode = 8
libVersion = '13'
}

View File

@ -233,7 +233,7 @@ class Kamyroll : ConfigurableAnimeSource, AnimeHttpSource() {
val videoUrl = it.substringAfter("\n").substringBefore("\n")
try {
Video(videoUrl, quality, videoUrl, subtitleTracks = subsList)
Video(videoUrl, quality, videoUrl, subtitleTracks = if (stream.hardsub.getLocale().isNotBlank()) emptyList() else subsList)
} catch (e: Error) {
Video(videoUrl, quality, videoUrl)
}