Taiyo: Fix token (#8127)

Fix token
This commit is contained in:
Chopper 2025-03-19 15:59:27 -03:00 committed by Draff
parent 6f47ed8bc1
commit c5fbede326
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'Taiyō' extName = 'Taiyō'
extClass = '.Taiyo' extClass = '.Taiyo'
extVersionCode = 6 extVersionCode = 7
isNsfw = true isNsfw = true
} }

View File

@ -317,7 +317,7 @@ class Taiyo : ParsedHttpSource() {
val script = getScriptContainingToken(scripts) val script = getScriptContainingToken(scripts)
?: throw Exception("Não foi possivel localizar o token") ?: throw Exception("Não foi possivel localizar o token")
return TOKEN_REGEX.find(script)?.groups?.get(1)?.value return TOKEN_REGEX.find(script)?.groups?.get(2)?.value
?: throw Exception("Não foi possivel extrair o token") ?: throw Exception("Não foi possivel extrair o token")
} }