fix(pt/anitube): Fixed pt/Anitube (close #525) (#569)

This commit is contained in:
WebDitto 2025-01-18 16:45:29 -03:00 committed by GitHub
parent b954417a98
commit 84d261a3c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
ext { ext {
extName = 'Anitube' extName = 'Anitube'
extClass = '.Anitube' extClass = '.Anitube'
extVersionCode = 21 extVersionCode = 22
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View file

@ -108,7 +108,7 @@ class AnitubeExtractor(
.body.string() .body.string()
val adsUrl = body.let { val adsUrl = body.let {
Regex("""ADS_URL\s*=\s*['"]([^'"]+)['"]""") Regex("""urlToFetch\s*=\s*['"]([^'"]+)['"]""")
.find(it)?.groups?.get(1)?.value .find(it)?.groups?.get(1)?.value
?: "" ?: ""
} }