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
version = 15
version = 16
cloudstream {

View file

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

View file

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

View file

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