GDIndex: Fix stuff (#1503)

This commit is contained in:
Secozzi
2023-04-16 16:57:49 +02:00
committed by GitHub
parent e6c4764a51
commit ebf8f51cf7
2 changed files with 5 additions and 1 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'GoogleDriveIndex'
pkgNameSuffix = 'all.googledriveindex'
extClass = '.GoogleDriveIndex'
extVersionCode = 4
extVersionCode = 5
libVersion = '13'
}

View File

@ -434,6 +434,10 @@ class GoogleDriveIndex : ConfigurableAnimeSource, AnimeHttpSource() {
?: doc.selectFirst("script:containsData(downloaddomain)")?.data()
?: return Observable.just(listOf(Video(url, "Video", url)))
if (script.contains("\"second_domain_for_dl\":false")) {
return Observable.just(listOf(Video(url, "Video", url)))
}
val domainUrl = if (script.contains("videodomain", true)) {
script
.substringAfter("\"videodomain\":\"")