Fixes
This commit is contained in:
parent
7ca9b60e51
commit
95abd69d84
|
@ -310,7 +310,7 @@ object SoraItalianExtractor : SoraItalianStream() {
|
||||||
val link = response.select("a.bottone-ep")
|
val link = response.select("a.bottone-ep")
|
||||||
.find { it.text().substringAfter("Episodio ") == episode.toString() }
|
.find { it.text().substringAfter("Episodio ") == episode.toString() }
|
||||||
?.attr("href")
|
?.attr("href")
|
||||||
if (link?.isBlank() == true) { //links exists
|
if (link?.isBlank() == false) { //links exists
|
||||||
val page = app.get(link).document
|
val page = app.get(link).document
|
||||||
val episodeLink = page.select("div.card-body > a[href*=watch]").attr("href")
|
val episodeLink = page.select("div.card-body > a[href*=watch]").attr("href")
|
||||||
?: throw ErrorLoadingException("No link Found")
|
?: throw ErrorLoadingException("No link Found")
|
||||||
|
|
Loading…
Reference in New Issue