changed daddyhd domain

This commit is contained in:
sora 2023-07-22 12:45:24 +07:00
parent b8b87dea74
commit 89a619929b
4 changed files with 9 additions and 5 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers // use an integer for version numbers
version = 15 version = 16
cloudstream { cloudstream {

View file

@ -19,7 +19,7 @@ open class TimefourTv : MainAPI() {
) )
companion object { companion object {
const val daddyUrl = "https://d.daddylivehd.sx" const val daddyUrl = "https://daddylivehd.com"
val daddyHost: String = daddyUrl.getHost() val daddyHost: String = daddyUrl.getHost()
private fun String.getHost(): String { private fun String.getHost(): String {
return URI(this).host.substringBeforeLast(".").substringAfterLast(".") return URI(this).host.substringBeforeLast(".").substringAfterLast(".")

View file

@ -1,5 +1,5 @@
// use an integer for version numbers // use an integer for version numbers
version = 16 version = 17
cloudstream { cloudstream {

View file

@ -1,13 +1,13 @@
package com.hexated package com.hexated
import com.lagradost.cloudstream3.LoadResponse
import com.lagradost.cloudstream3.TvType import com.lagradost.cloudstream3.TvType
import com.lagradost.cloudstream3.mainPageOf import com.lagradost.cloudstream3.mainPageOf
class Watchomovies : YomoviesProvider() { class Watchomovies : YomoviesProvider() {
override var mainUrl = "https://watchomovies.mom" override var mainUrl = "https://watchomovies.mom"
override var name = "Watchomovies" override var name = "Watchomovies"
override val hasMainPage = true override var lang = "en"
override var lang = "hi"
override val supportedTypes = setOf( override val supportedTypes = setOf(
TvType.NSFW, TvType.NSFW,
) )
@ -20,4 +20,8 @@ class Watchomovies : YomoviesProvider() {
"genre/parody" to "Parody Movies", "genre/parody" to "Parody Movies",
"genre/tv-shows" to "TV Shows Movies", "genre/tv-shows" to "TV Shows Movies",
) )
override suspend fun load(url: String): LoadResponse? {
return super.load(url).apply { this?.type = TvType.NSFW }
}
} }