cloudstream-extensions-hexated/YomoviesProvider/src/main/kotlin/com/hexated/Watchomovies.kt

28 lines
839 B
Kotlin
Raw Normal View History

2023-07-20 04:56:56 +00:00
package com.hexated
2023-07-22 05:45:24 +00:00
import com.lagradost.cloudstream3.LoadResponse
2023-07-20 04:56:56 +00:00
import com.lagradost.cloudstream3.TvType
import com.lagradost.cloudstream3.mainPageOf
class Watchomovies : YomoviesProvider() {
override var mainUrl = "https://watchomovies.lat"
2023-07-20 04:56:56 +00:00
override var name = "Watchomovies"
2023-07-22 05:45:24 +00:00
override var lang = "en"
2023-07-20 04:56:56 +00:00
override val supportedTypes = setOf(
TvType.NSFW,
)
override val mainPage = mainPageOf(
"most-favorites" to "Most Viewed",
"genre/xxx-scenes" to "XXX Scenes",
"genre/18" to "18+ Movies",
"genre/erotic-movies" to "Erotic Movies Movies",
"genre/parody" to "Parody Movies",
"genre/tv-shows" to "TV Shows Movies",
)
2023-07-22 05:45:24 +00:00
override suspend fun load(url: String): LoadResponse? {
return super.load(url).apply { this?.type = TvType.NSFW }
}
}