diff --git a/src/es/ragnarokscan/build.gradle b/src/es/ragnarokscan/build.gradle deleted file mode 100644 index d85a3a00a..000000000 --- a/src/es/ragnarokscan/build.gradle +++ /dev/null @@ -1,9 +0,0 @@ -ext { - extName = 'RagnarokScan' - extClass = '.RagnarokScan' - themePkg = 'madara' - baseUrl = 'https://ragnarokscan.com' - overrideVersionCode = 1 -} - -apply from: "$rootDir/common.gradle" diff --git a/src/es/ragnarokscan/res/mipmap-hdpi/ic_launcher.png b/src/es/ragnarokscan/res/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index f7826f05b..000000000 Binary files a/src/es/ragnarokscan/res/mipmap-hdpi/ic_launcher.png and /dev/null differ diff --git a/src/es/ragnarokscan/res/mipmap-mdpi/ic_launcher.png b/src/es/ragnarokscan/res/mipmap-mdpi/ic_launcher.png deleted file mode 100644 index e1a05c193..000000000 Binary files a/src/es/ragnarokscan/res/mipmap-mdpi/ic_launcher.png and /dev/null differ diff --git a/src/es/ragnarokscan/res/mipmap-xhdpi/ic_launcher.png b/src/es/ragnarokscan/res/mipmap-xhdpi/ic_launcher.png deleted file mode 100644 index af0788f77..000000000 Binary files a/src/es/ragnarokscan/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ diff --git a/src/es/ragnarokscan/res/mipmap-xxhdpi/ic_launcher.png b/src/es/ragnarokscan/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index de89acb2b..000000000 Binary files a/src/es/ragnarokscan/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/src/es/ragnarokscan/res/mipmap-xxxhdpi/ic_launcher.png b/src/es/ragnarokscan/res/mipmap-xxxhdpi/ic_launcher.png deleted file mode 100644 index 4edb85b33..000000000 Binary files a/src/es/ragnarokscan/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ diff --git a/src/es/ragnarokscan/src/eu/kanade/tachiyomi/extension/es/ragnarokscan/RagnarokScan.kt b/src/es/ragnarokscan/src/eu/kanade/tachiyomi/extension/es/ragnarokscan/RagnarokScan.kt deleted file mode 100644 index b5ac3d986..000000000 --- a/src/es/ragnarokscan/src/eu/kanade/tachiyomi/extension/es/ragnarokscan/RagnarokScan.kt +++ /dev/null @@ -1,80 +0,0 @@ -package eu.kanade.tachiyomi.extension.es.ragnarokscan - -import eu.kanade.tachiyomi.multisrc.madara.Madara -import eu.kanade.tachiyomi.multisrc.madara.WordSet -import eu.kanade.tachiyomi.source.model.SChapter -import eu.kanade.tachiyomi.source.model.SManga -import org.jsoup.nodes.Element -import java.text.ParseException -import java.text.SimpleDateFormat -import java.util.Locale - -class RagnarokScan : Madara( - "RagnarokScan", - "https://ragnarokscan.com", - "es", - SimpleDateFormat("MMMMM dd, yyyy", Locale("es")), -) { - // "mangaSubstring" has changed, so users will have to migrate - override val versionId = 2 - override val mangaSubString = "series" - override val chapterUrlSuffix = "" - - override fun popularMangaSelector() = "div#series-card:has(a:not([href*='bilibilicomics.com']))" - override val popularMangaUrlSelector = "a.series-link" - - override val mangaDetailsSelectorTag = "div.tags-content a.notUsed" // Source use this for the scanlator - override val mangaDetailsSelectorStatus = "div.post-status div.summary-content" - - override fun popularMangaFromElement(element: Element): SManga { - val manga = SManga.create() - - with(element) { - selectFirst(popularMangaUrlSelector)!!.let { - manga.setUrlWithoutDomain(it.attr("abs:href")) - manga.title = it.attr("title") - } - - selectFirst("img")?.let { - manga.thumbnail_url = imageFromElement(it) - } - } - - return manga - } - - override fun chapterFromElement(element: Element): SChapter { - val chapter = SChapter.create() - - with(element) { - selectFirst(chapterUrlSelector)!!.let { urlElement -> - chapter.url = urlElement.attr("abs:href").let { - it.substringBefore("?style=paged") + if (!it.endsWith(chapterUrlSuffix)) chapterUrlSuffix else "" - } - chapter.name = urlElement.select("p.chapter-manhwa-title").text() - chapter.date_upload = parseChapterDate(select("span.chapter-release-date").text()) - } - } - - return chapter - } - - override fun parseChapterDate(date: String?): Long { - date ?: return 0 - - fun SimpleDateFormat.tryParse(string: String): Long { - return try { - parse(string)?.time ?: 0 - } catch (_: ParseException) { - 0 - } - } - - return when { - WordSet("minuto", "minutos", "hora", "horas", "día", "días").endsWith(date) -> { - parseRelativeDate(date) - } - else -> SimpleDateFormat("MMMMM dd, yyyy", Locale("es")).tryParse(date) - } - } -}