Skip to content

Commit

Permalink
fix: some scanlators not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelonion committed Jan 3, 2025
1 parent 0779c0c commit e41ab2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/src/main/java/ani/dantotsu/parsers/BaseSources.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ abstract class WatchSources : BaseSources() {
tryWithSuspend(true) {
if (sAnime != null) {
parser.loadEpisodes(showLink, extra, sAnime).forEach {
map[it.number] = Episode(
map["${it.number}-${it.hashCode()}"] = Episode(
it.number,
it.link,
it.title,
Expand All @@ -51,7 +51,7 @@ abstract class WatchSources : BaseSources() {
}
} else if (parser is OfflineAnimeParser) {
parser.loadEpisodes(showLink, extra, SAnime.create()).forEach {
map[it.number] = Episode(
map["${it.number}-${it.hashCode()}"] = Episode(
it.number,
it.link,
it.title,
Expand Down Expand Up @@ -90,7 +90,7 @@ abstract class MangaReadSources : BaseSources() {
show.sManga?.let { sManga ->
tryWithSuspend(true) {
parser.loadChapters(show.link, show.extra, sManga).forEach {
map[it.number] = MangaChapter(it)
map["${it.number}-${it.hashCode()}"] = MangaChapter(it)
}
}
}
Expand All @@ -102,7 +102,7 @@ abstract class MangaReadSources : BaseSources() {
tryWithSuspend(true) {
// Since we've checked, we can safely cast parser to OfflineMangaParser and call its methods
parser.loadChapters(show.link, show.extra, SManga.create()).forEach {
map[it.number] = MangaChapter(it)
map["${it.number}-${it.hashCode()}"] = MangaChapter(it)
}
}
} else {
Expand Down

0 comments on commit e41ab2d

Please sign in to comment.