mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-11 19:36:17 +00:00
fix: some scanlators not showing
This commit is contained in:
@@ -38,7 +38,7 @@ abstract class WatchSources : BaseSources() {
|
|||||||
tryWithSuspend(true) {
|
tryWithSuspend(true) {
|
||||||
if (sAnime != null) {
|
if (sAnime != null) {
|
||||||
parser.loadEpisodes(showLink, extra, sAnime).forEach {
|
parser.loadEpisodes(showLink, extra, sAnime).forEach {
|
||||||
map[it.number] = Episode(
|
map["${it.number}-${it.hashCode()}"] = Episode(
|
||||||
it.number,
|
it.number,
|
||||||
it.link,
|
it.link,
|
||||||
it.title,
|
it.title,
|
||||||
@@ -51,7 +51,7 @@ abstract class WatchSources : BaseSources() {
|
|||||||
}
|
}
|
||||||
} else if (parser is OfflineAnimeParser) {
|
} else if (parser is OfflineAnimeParser) {
|
||||||
parser.loadEpisodes(showLink, extra, SAnime.create()).forEach {
|
parser.loadEpisodes(showLink, extra, SAnime.create()).forEach {
|
||||||
map[it.number] = Episode(
|
map["${it.number}-${it.hashCode()}"] = Episode(
|
||||||
it.number,
|
it.number,
|
||||||
it.link,
|
it.link,
|
||||||
it.title,
|
it.title,
|
||||||
@@ -90,7 +90,7 @@ abstract class MangaReadSources : BaseSources() {
|
|||||||
show.sManga?.let { sManga ->
|
show.sManga?.let { sManga ->
|
||||||
tryWithSuspend(true) {
|
tryWithSuspend(true) {
|
||||||
parser.loadChapters(show.link, show.extra, sManga).forEach {
|
parser.loadChapters(show.link, show.extra, sManga).forEach {
|
||||||
map[it.number] = MangaChapter(it)
|
map["${it.number}-${it.hashCode()}"] = MangaChapter(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -102,7 +102,7 @@ abstract class MangaReadSources : BaseSources() {
|
|||||||
tryWithSuspend(true) {
|
tryWithSuspend(true) {
|
||||||
// Since we've checked, we can safely cast parser to OfflineMangaParser and call its methods
|
// Since we've checked, we can safely cast parser to OfflineMangaParser and call its methods
|
||||||
parser.loadChapters(show.link, show.extra, SManga.create()).forEach {
|
parser.loadChapters(show.link, show.extra, SManga.create()).forEach {
|
||||||
map[it.number] = MangaChapter(it)
|
map["${it.number}-${it.hashCode()}"] = MangaChapter(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user