no egybest

This commit is contained in:
Zaw 2022-11-02 20:48:57 +02:00 committed by GitHub
parent 8164950b7a
commit c7bd8bf973
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
version = 7 version = 7
cloudstream { cloudstream {
description = "If links do not load, try again" description = "Egybest is broken"
authors = listOf( "ImZaw" ) authors = listOf( "ImZaw" )
language = "ar" language = "ar"

View file

@ -118,7 +118,7 @@ class EgyBest : MainAPI() {
} }
override suspend fun load(url: String): LoadResponse { override suspend fun load(url: String): LoadResponse {
val doc = app.get(url).document val doc = app.get(mainUrl + url).document
val isMovie = Regex(".*/movie/.*|.*/masrahiya/.*").matches(url) val isMovie = Regex(".*/movie/.*|.*/masrahiya/.*").matches(url)
val posterUrl = doc.select("div.movie_img a img")?.attr("src") val posterUrl = doc.select("div.movie_img a img")?.attr("src")
val year = doc.select("div.movie_title h1 a")?.text()?.toIntOrNull() val year = doc.select("div.movie_title h1 a")?.text()?.toIntOrNull()

View file

@ -1,6 +1,6 @@
rootProject.name = "CloudstreamExtensionsArabic" rootProject.name = "CloudstreamExtensionsArabic"
val disabled = listOf<String>("EgyBestProvider") val disabled = listOf<String>()
File(rootDir, ".").eachDir { dir -> File(rootDir, ".").eachDir { dir ->
if (!disabled.contains(dir.name) && File(dir, "build.gradle.kts").exists()) { if (!disabled.contains(dir.name) && File(dir, "build.gradle.kts").exists()) {