[RU]GroupLe new image domain remove token (#14656)

* [RU]GroupLe new image domain remove token

* clean
This commit is contained in:
Eshlender 2022-12-24 20:05:15 +05:00 committed by GitHub
parent b0e304263c
commit b84060f0e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -279,6 +279,8 @@ abstract class GroupLe(
} }
if (!url.contains("://")) if (!url.contains("://"))
url = "https:$url" url = "https:$url"
if (url.contains("one-way.work")) // domain that does not need a token
url = url.substringBefore("?")
pages.add(Page(i++, "", url.replace("//resh", "//h"))) pages.add(Page(i++, "", url.replace("//resh", "//h")))
} }
return pages return pages

View File

@ -9,7 +9,7 @@ class GroupLeGenerator : ThemeSourceGenerator {
override val themeClass = "GroupLe" override val themeClass = "GroupLe"
override val baseVersionCode: Int = 8 override val baseVersionCode: Int = 9
override val sources = listOf( override val sources = listOf(
SingleLang("ReadManga", "https://readmanga.live", "ru", overrideVersionCode = 46), SingleLang("ReadManga", "https://readmanga.live", "ru", overrideVersionCode = 46),