This commit is contained in:
ThePromidius
2024-01-14 18:40:20 +01:00
parent 14792d2a11
commit 6f088ac76f
5620 changed files with 29879 additions and 2214 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

View File

@@ -0,0 +1,40 @@
package eu.kanade.tachiyomi.extension.ar.potatomanga
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
import eu.kanade.tachiyomi.source.model.SManga
import okhttp3.Request
import java.text.SimpleDateFormat
import java.util.Locale
class PotatoManga : MangaThemesia(
"PotatoManga",
"https://potatomanga.xyz",
"ar",
mangaUrlDirectory = "/series",
dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale("ar")),
) {
override val seriesArtistSelector =
".infotable tr:contains(الرسام) td:last-child, ${super.seriesArtistSelector}"
override val seriesAuthorSelector =
".infotable tr:contains(المؤلف) td:last-child, ${super.seriesAuthorSelector}"
override val seriesStatusSelector =
".infotable tr:contains(الحالة) td:last-child, ${super.seriesStatusSelector}"
override val seriesTypeSelector =
".infotable tr:contains(النوع) td:last-child, ${super.seriesTypeSelector}"
override val seriesAltNameSelector =
".infotable tr:contains(الأسماء الثانوية) td:last-child, ${super.seriesAltNameSelector}"
override fun mangaDetailsRequest(manga: SManga): Request {
if (manga.url.startsWith("/manga")) {
manga.url.replaceFirst("/manga", mangaUrlDirectory)
}
return super.mangaDetailsRequest(manga)
}
override fun chapterListRequest(manga: SManga): Request {
if (manga.url.startsWith("/manga")) {
manga.url.replaceFirst("/manga", mangaUrlDirectory)
}
return super.chapterListRequest(manga)
}
}