fix(AnimeWord): update rocklinks bypass

This commit is contained in:
Deepak Patil 2022-12-31 13:22:26 +05:30
parent ba2d83a3bc
commit 51210ea5b7
No known key found for this signature in database
GPG key ID: 72C2703D0D120C3D
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
version = 4 version = 5
cloudstream { cloudstream {

View file

@ -190,7 +190,7 @@ class AnimeWorldProvider : MainAPI() { // all providers must be an instance of M
private suspend fun bypassRockLinks(link: String) { private suspend fun bypassRockLinks(link: String) {
val domain = val domain =
if (link.contains("rocklinks")) "https://blog.disheye.com" else "https://cac.teckypress.in" if (link.contains("rocklinks")) "https://link.techyone.co" else "https://cac.teckypress.in"
val baseUrl = val baseUrl =
if (link.contains("rocklinks")) "$domain/${link.substringAfterLast("/")}?quelle=" else "$domain/${ if (link.contains("rocklinks")) "$domain/${link.substringAfterLast("/")}?quelle=" else "$domain/${
link.substringAfterLast("/") link.substringAfterLast("/")