mirror of
https://github.com/null2264/yokai.git
synced 2025-07-17 14:26:54 +00:00
fix: Conflict function name error
This commit is contained in:
parent
822fe5c120
commit
8a11510296
1 changed files with 1 additions and 17 deletions
|
@ -451,7 +451,7 @@ abstract class HttpSource : CatalogueSource {
|
||||||
fun getChapterUrl(manga: SManga?, chapter: SChapter): String? {
|
fun getChapterUrl(manga: SManga?, chapter: SChapter): String? {
|
||||||
manga ?: return null
|
manga ?: return null
|
||||||
|
|
||||||
val chapterUrl = chapter.url.getUrlWithoutDomain()
|
val chapterUrl = getUrlWithoutDomain(chapter.url)
|
||||||
val mangaUrl = getMangaUrl(manga)
|
val mangaUrl = getMangaUrl(manga)
|
||||||
return if (chapterUrl.isBlank()) {
|
return if (chapterUrl.isBlank()) {
|
||||||
mangaUrl
|
mangaUrl
|
||||||
|
@ -498,22 +498,6 @@ abstract class HttpSource : CatalogueSource {
|
||||||
* Returns the list of filters for the source.
|
* Returns the list of filters for the source.
|
||||||
*/
|
*/
|
||||||
override fun getFilterList() = FilterList()
|
override fun getFilterList() = FilterList()
|
||||||
|
|
||||||
private fun String.getUrlWithoutDomain(): String {
|
|
||||||
return try {
|
|
||||||
val uri = URI(this.replace(" ", "%20"))
|
|
||||||
var out = uri.path
|
|
||||||
if (uri.query != null) {
|
|
||||||
out += "?" + uri.query
|
|
||||||
}
|
|
||||||
if (uri.fragment != null) {
|
|
||||||
out += "#" + uri.fragment
|
|
||||||
}
|
|
||||||
out
|
|
||||||
} catch (e: URISyntaxException) {
|
|
||||||
this
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class LicensedMangaChaptersException : Exception("Licensed - No chapters to show")
|
class LicensedMangaChaptersException : Exception("Licensed - No chapters to show")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue