mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
MainUrl fixes and sequentialMainPage (#32)
* mainUrl changes and sequentialMainPage
This commit is contained in:
parent
a535ba088d
commit
b25896d01a
6 changed files with 12 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 1
|
version = 2
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -9,7 +9,7 @@ import com.lagradost.cloudstream3.utils.AppUtils.html
|
||||||
|
|
||||||
class AltadefinizioneProvider : MainAPI() {
|
class AltadefinizioneProvider : MainAPI() {
|
||||||
override var lang = "it"
|
override var lang = "it"
|
||||||
override var mainUrl = "https://altadefinizione.tienda"
|
override var mainUrl = "https://altadefinizione.clinic"
|
||||||
override var name = "Altadefinizione"
|
override var name = "Altadefinizione"
|
||||||
override val hasMainPage = true
|
override val hasMainPage = true
|
||||||
override val hasChromecastSupport = true
|
override val hasChromecastSupport = true
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 1
|
version = 2
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -15,19 +15,19 @@ import com.lagradost.cloudstream3.utils.AppUtils.html
|
||||||
|
|
||||||
class FilmpertuttiProvider : MainAPI() {
|
class FilmpertuttiProvider : MainAPI() {
|
||||||
override var lang = "it"
|
override var lang = "it"
|
||||||
override var mainUrl = "https://filmpertutti.photo"
|
override var mainUrl = "https://filmpertutti.sbs"
|
||||||
override var name = "Filmpertutti"
|
override var name = "FilmPerTutti"
|
||||||
override val hasMainPage = true
|
override val hasMainPage = true
|
||||||
override val hasChromecastSupport = true
|
override val hasChromecastSupport = true
|
||||||
override val supportedTypes = setOf(
|
override val supportedTypes = setOf(
|
||||||
TvType.Movie,
|
TvType.Movie,
|
||||||
TvType.TvSeries
|
TvType.TvSeries
|
||||||
)
|
)
|
||||||
|
override var sequentialMainPage = true
|
||||||
override val mainPage = mainPageOf(
|
override val mainPage = mainPageOf(
|
||||||
Pair("$mainUrl/category/film/page/", "Film Popolari"),
|
Pair("$mainUrl/category/film/page/", "Film Popolari"),
|
||||||
Pair("$mainUrl/category/serie-tv/page/", "Serie Tv Popolari"),
|
Pair("$mainUrl/category/serie-tv/page/", "Serie Tv Popolari"),
|
||||||
Pair("$mainUrl/prime-visioni/", "Ultime uscite"),
|
Pair("$mainUrl/prime-visioni/", "Ultime uscite")
|
||||||
)
|
)
|
||||||
|
|
||||||
override suspend fun getMainPage(
|
override suspend fun getMainPage(
|
||||||
|
@ -35,8 +35,7 @@ class FilmpertuttiProvider : MainAPI() {
|
||||||
request: MainPageRequest
|
request: MainPageRequest
|
||||||
): HomePageResponse {
|
): HomePageResponse {
|
||||||
val url = request.data + page
|
val url = request.data + page
|
||||||
|
val soup = app.get(url, referer = mainUrl).document
|
||||||
val soup = app.get(url).document
|
|
||||||
val home = soup.select("ul.posts > li").map {
|
val home = soup.select("ul.posts > li").map {
|
||||||
val title = it.selectFirst("div.title")!!.text().substringBeforeLast("(")
|
val title = it.selectFirst("div.title")!!.text().substringBeforeLast("(")
|
||||||
.substringBeforeLast("[")
|
.substringBeforeLast("[")
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 2
|
version = 3
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -1,15 +1,13 @@
|
||||||
package com.lagradost
|
package com.lagradost
|
||||||
|
|
||||||
import com.lagradost.cloudstream3.*
|
import com.lagradost.cloudstream3.*
|
||||||
import com.lagradost.cloudstream3.mvvm.logError
|
|
||||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addRating
|
import com.lagradost.cloudstream3.LoadResponse.Companion.addRating
|
||||||
import com.lagradost.cloudstream3.utils.AppUtils.toJson
|
import com.lagradost.cloudstream3.utils.AppUtils.toJson
|
||||||
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
|
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
|
||||||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||||
import com.lagradost.cloudstream3.utils.ShortLink
|
import com.lagradost.cloudstream3.utils.ShortLink
|
||||||
import com.lagradost.cloudstream3.utils.loadExtractor
|
import com.lagradost.cloudstream3.utils.loadExtractor
|
||||||
import org.jsoup.Jsoup
|
|
||||||
import org.jsoup.nodes.Element
|
|
||||||
|
|
||||||
|
|
||||||
class IlGenioDelloStreamingProvider : MainAPI() {
|
class IlGenioDelloStreamingProvider : MainAPI() {
|
||||||
|
@ -18,6 +16,7 @@ class IlGenioDelloStreamingProvider : MainAPI() {
|
||||||
override var name = "IlGenioDelloStreaming"
|
override var name = "IlGenioDelloStreaming"
|
||||||
override val hasMainPage = true
|
override val hasMainPage = true
|
||||||
override val hasChromecastSupport = true
|
override val hasChromecastSupport = true
|
||||||
|
override var sequentialMainPage = true
|
||||||
override val supportedTypes = setOf(
|
override val supportedTypes = setOf(
|
||||||
TvType.Movie,
|
TvType.Movie,
|
||||||
TvType.TvSeries,
|
TvType.TvSeries,
|
||||||
|
@ -126,7 +125,7 @@ class IlGenioDelloStreamingProvider : MainAPI() {
|
||||||
name = "$epName ${subtag.uppercase()}",
|
name = "$epName ${subtag.uppercase()}",
|
||||||
episode = seasonNo?.text()?.substringAfter("x")?.filter { it.isDigit() }?.toIntOrNull()
|
episode = seasonNo?.text()?.substringAfter("x")?.filter { it.isDigit() }?.toIntOrNull()
|
||||||
|
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue