This commit is contained in:
contusionglory 2022-12-21 20:21:50 +00:00 committed by GitHub
parent 7ca9b60e51
commit 95abd69d84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ object SoraItalianExtractor : SoraItalianStream() {
val link = response.select("a.bottone-ep")
.find { it.text().substringAfter("Episodio ") == episode.toString() }
?.attr("href")
if (link?.isBlank() == true) { //links exists
if (link?.isBlank() == false) { //links exists
val page = app.get(link).document
val episodeLink = page.select("div.card-body > a[href*=watch]").attr("href")
?: throw ErrorLoadingException("No link Found")