Skip to content
This repository was archived by the owner on Oct 2, 2022. It is now read-only.

Commit eb5ee4e

Browse files
committed
Fix crash on xvideos mirror.
1 parent 3175025 commit eb5ee4e

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

app/src/main/java/com/lagradost/cloudstream3/MainAPI.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ object APIHolder {
166166
OpJavCom(),
167167
Vlxx(),
168168
Xvideos(),
169-
Xvideos2(),
170169
Pornhub(),
171170
HentaiLa(),
172171
JKHentai(),

app/src/main/java/com/lagradost/cloudstream3/providersnsfw/Xvideos.kt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ import com.lagradost.cloudstream3.mvvm.logError
55
import com.lagradost.cloudstream3.utils.*
66

77

8-
class Xvideos2: Xvideos() {
9-
override var mainUrl = "https://www.xvideos2.com"
10-
override var name = "Xvideos2"
11-
}
12-
138
open class Xvideos : MainAPI() {
149
override var mainUrl = "https://www.xvideos.com"
1510
override var name = "Xvideos"
@@ -19,8 +14,8 @@ open class Xvideos : MainAPI() {
1914
override val supportedTypes = setOf(TvType.XXX, TvType.JAV, TvType.Hentai)
2015

2116
override val mainPage = mainPageOf(
22-
mainUrl to "Main Page",
23-
"$mainUrl/new/" to "New",
17+
Pair(mainUrl, "Main Page"),
18+
Pair("$mainUrl/new/", "New")
2419
)
2520

2621
override suspend fun getMainPage(page: Int, request: MainPageRequest): HomePageResponse {

0 commit comments

Comments
 (0)