diff --git a/GoodPorn/build.gradle.kts b/GoodPorn/build.gradle.kts index 447da022..1156309d 100644 --- a/GoodPorn/build.gradle.kts +++ b/GoodPorn/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 2 +version = 3 cloudstream { diff --git a/GoodPorn/src/main/kotlin/com/hexated/GoodPorn.kt b/GoodPorn/src/main/kotlin/com/hexated/GoodPorn.kt index 17935617..7b173e00 100644 --- a/GoodPorn/src/main/kotlin/com/hexated/GoodPorn.kt +++ b/GoodPorn/src/main/kotlin/com/hexated/GoodPorn.kt @@ -18,9 +18,12 @@ class GoodPorn : MainAPI() { "$mainUrl/?mode=async&function=get_block&block_id=list_videos_most_recent_videos&sort_by=post_date&from=" to "New Videos", "$mainUrl/?mode=async&function=get_block&block_id=list_videos_most_recent_videos&sort_by=video_viewed&from=" to "Most Viewed Videos", "$mainUrl/?mode=async&function=get_block&block_id=list_videos_most_recent_videos&sort_by=rating&from=" to "Top Rated Videos ", - "$mainUrl/?mode=async&function=get_block&block_id=list_videos_most_recent_videos&sort_by=most_commented&from=" to "Most Commented Videos ", + "$mainUrl/?mode=async&function=get_block&block_id=list_videos_most_recent_videos&sort_by=most_commented&from=" to "Most Commented Videos", "$mainUrl/?mode=async&function=get_block&block_id=list_videos_most_recent_videos&sort_by=duration&from=" to "Longest Videos", - "$mainUrl/?mode=async&function=get_block&block_id=list_videos_most_recent_videos&sort_by=most_favourited&from=" to "Most Favourited Videos ", + "$mainUrl/channels/brazzers/?mode=async&function=get_block&block_id=list_videos_common_videos_list&sort_by=post_date&from=" to "Brazzers", + "$mainUrl/channels/digitalplayground/?mode=async&function=get_block&block_id=list_videos_common_videos_list&sort_by=post_date&from=" to "Digital Playground", + "$mainUrl/channels/realitykings/?mode=async&function=get_block&block_id=list_videos_common_videos_list&sort_by=post_date&from=" to "Realitykings", + "$mainUrl/channels/babes-network/?mode=async&function=get_block&block_id=list_videos_common_videos_list&sort_by=post_date&from=" to "Babes Network", ) override suspend fun getMainPage( @@ -28,7 +31,7 @@ class GoodPorn : MainAPI() { request: MainPageRequest ): HomePageResponse { val document = app.get(request.data + page).document - val home = document.select("div#list_videos_most_recent_videos_items div.item").mapNotNull { + val home = document.select("div#list_videos_most_recent_videos_items div.item, div#list_videos_common_videos_list_items div.item").mapNotNull { it.toSearchResult() } return newHomePageResponse( diff --git a/YomoviesProvider/build.gradle.kts b/YomoviesProvider/build.gradle.kts index 4b93d4e1..e846c28c 100644 --- a/YomoviesProvider/build.gradle.kts +++ b/YomoviesProvider/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 3 +version = 4 cloudstream { diff --git a/YomoviesProvider/src/main/kotlin/com/hexated/YomoviesProvider.kt b/YomoviesProvider/src/main/kotlin/com/hexated/YomoviesProvider.kt index 879f1d0f..6dc8aed6 100644 --- a/YomoviesProvider/src/main/kotlin/com/hexated/YomoviesProvider.kt +++ b/YomoviesProvider/src/main/kotlin/com/hexated/YomoviesProvider.kt @@ -33,7 +33,11 @@ class YomoviesProvider : MainAPI() { page: Int, request: MainPageRequest ): HomePageResponse { - val document = app.get(request.data + page).document + val document = if (page == 1) { + app.get(request.data.removeSuffix("page/")).document + } else { + app.get(request.data + page).document + } val home = document.select("div.ml-item").mapNotNull { it.toSearchResult() }