Updated Domain name for Bolly2Tolly and MHDTV.

This commit is contained in:
Nityanand Katare 2023-09-07 22:12:29 +05:30
parent fee129c1ce
commit ab02cbfe29
5 changed files with 23 additions and 23 deletions

View File

@ -10,7 +10,7 @@ import com.lagradost.cloudstream3.utils.loadExtractor
import org.jsoup.nodes.Element import org.jsoup.nodes.Element
class FivemovierulzProvider : MainAPI() { // all providers must be an instance of MainAPI class FivemovierulzProvider : MainAPI() { // all providers must be an instance of MainAPI
override var mainUrl = "https://5movierulz.cm" override var mainUrl = "https://ww4.5movierulz.sbs"
override var name = "5movierulz" override var name = "5movierulz"
override val hasMainPage = true override val hasMainPage = true
override var lang = "hi" override var lang = "hi"
@ -20,14 +20,14 @@ class FivemovierulzProvider : MainAPI() { // all providers must be an instance o
) )
override val mainPage = mainPageOf( override val mainPage = mainPageOf(
"$mainUrl/category/featured/page/" to "Popular Movies", "$mainUrl/category/featured/" to "Popular Movies",
"$mainUrl/category/hollywood-movie-2021/page/" to "English", "$mainUrl/category/hollywood-movie-2023/" to "English",
"$mainUrl/bollywood-movie-free/page/" to "Hindi", "$mainUrl/bollywood-movie-free/" to "Hindi",
"$mainUrl/tamil-movie-free/page/" to "Tamil", "$mainUrl/tamil-movie-free/" to "Tamil",
"$mainUrl/telugu-movie/page/" to "Telugu", "$mainUrl/telugu-movie/" to "Telugu",
"$mainUrl/malayalam-movie-online/page/" to "Malayalam", "$mainUrl/malayalam-movie-online/" to "Malayalam",
"$mainUrl/category/bengali-movie/page/" to "Bengali", "$mainUrl/category/bengali-movie/" to "Bengali",
"$mainUrl/category/punjabi-movie/page/" to "Punjabi", "$mainUrl/category/punjabi-movie/" to "Punjabi",
) )
override suspend fun getMainPage( override suspend fun getMainPage(

View File

@ -21,5 +21,5 @@ cloudstream {
"Movie", "Movie",
) )
iconUrl = "https://www.google.com/s2/favicons?domain=bolly2tolly.desi/&sz=%size%" iconUrl = "https://www.google.com/s2/favicons?domain=bolly2tolly.wiki/&sz=%size%"
} }

View File

@ -8,7 +8,7 @@ import com.lagradost.cloudstream3.utils.loadExtractor
import org.jsoup.nodes.Element import org.jsoup.nodes.Element
class Bolly2TollyProvider : MainAPI() { // all providers must be an instance of MainAPI class Bolly2TollyProvider : MainAPI() { // all providers must be an instance of MainAPI
override var mainUrl = "https://www.bolly2tolly.desi" override var mainUrl = "https://www.bolly2tolly.wiki"
override var name = "Bolly2Tolly" override var name = "Bolly2Tolly"
override val hasMainPage = true override val hasMainPage = true
override var lang = "hi" override var lang = "hi"
@ -19,14 +19,14 @@ class Bolly2TollyProvider : MainAPI() { // all providers must be an instance of
) )
override val mainPage = mainPageOf( override val mainPage = mainPageOf(
"$mainUrl/page/" to "Latest ", "$mainUrl/" to "Latest ",
"$mainUrl/category/english-movies/page/" to "English", "$mainUrl/category/english-movies/" to "English",
"$mainUrl/category/hindi-movies/page/" to "Hindi", "$mainUrl/category/hindi-movies/" to "Hindi",
"$mainUrl/category/telugu-movies/page/" to "Telugu", "$mainUrl/category/telugu-movies/" to "Telugu",
"$mainUrl/category/tamil-movies/page/" to "Tamil", "$mainUrl/category/tamil-movies/" to "Tamil",
"$mainUrl/category/kannada-movies/page/" to "Kannada", "$mainUrl/category/kannada-movies/" to "Kannada",
"$mainUrl/category/malayalam-movies/page/" to "Malayalam", "$mainUrl/category/malayalam-movies/" to "Malayalam",
"$mainUrl/category/bengali-movies/page/" to "Bengali" "$mainUrl/category/bengali-movies/" to "Bengali"
) )

View File

@ -20,5 +20,5 @@ cloudstream {
"Live" "Live"
) )
iconUrl = "https://www.google.com/s2/favicons?domain=mhdtvworld.xyz&sz=%size%" iconUrl = "https://www.google.com/s2/favicons?domain=mhdtvworld.me&sz=%size%"
} }

View File

@ -12,7 +12,7 @@ import org.jsoup.nodes.Element
import kotlin.math.floor import kotlin.math.floor
class MHDTVProvider : MainAPI() { // all providers must be an instance of MainAPI class MHDTVProvider : MainAPI() { // all providers must be an instance of MainAPI
override var mainUrl = "https://mhdtvworld.xyz" override var mainUrl = "https://mhdtvworld.me"
override var name = "MHDTVWorld" override var name = "MHDTVWorld"
override val hasMainPage = true override val hasMainPage = true
override var lang = "hi" override var lang = "hi"
@ -144,7 +144,7 @@ class MHDTVProvider : MainAPI() { // all providers must be an instance of MainAP
): Boolean { ): Boolean {
val document = app.get(url = data, referer = "$mainUrl/").document val document = app.get(url = data, referer = "$mainUrl/").document
if (data.startsWith("https://mhdtvworld.xyz/jwplayer/")) { if (data.startsWith("https://mhdtvworld.me/jwplayer/")) {
val decoded = decode(data) val decoded = decode(data)
val source = decoded.substringAfter("source=").substringBefore("&id") val source = decoded.substringAfter("source=").substringBefore("&id")
@ -158,7 +158,7 @@ class MHDTVProvider : MainAPI() { // all providers must be an instance of MainAP
isM3u8 = true, isM3u8 = true,
) )
) )
} else if (data.startsWith("https://mhdtvworld.xyz/delta") || data.startsWith("https://yuppstream.net.in/")) { } else if (data.startsWith("https://mhdtvworld.me/delta") || data.startsWith("https://yuppstream.net.in/")) {
val srcRegex = Regex("""hls: '(.*?.)',""") val srcRegex = Regex("""hls: '(.*?.)',""")
val regexMatch = val regexMatch =
srcRegex.find(document.toString())?.groupValues?.getOrNull(1).toString() srcRegex.find(document.toString())?.groupValues?.getOrNull(1).toString()