mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 07:51:52 +01:00
Revert chapter equals method
This commit is contained in:
parent
c0d7b16ee6
commit
71fc6fc257
@ -31,10 +31,7 @@ class ChapterImpl : Chapter {
|
|||||||
if (other == null || javaClass != other.javaClass) return false
|
if (other == null || javaClass != other.javaClass) return false
|
||||||
|
|
||||||
val chapter = other as Chapter
|
val chapter = other as Chapter
|
||||||
// Forces updates on manga if scanlator changes. This will allow existing manga in library
|
return url == chapter.url
|
||||||
// with scanlator to update.
|
|
||||||
return url == chapter.url && scanlator == chapter.scanlator
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun hashCode(): Int {
|
override fun hashCode(): Int {
|
||||||
|
@ -37,7 +37,7 @@ fun syncChaptersWithSource(db: DatabaseHelper,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Chapters from the db not in the source.
|
// Chapters from the source not in db.
|
||||||
val toAdd = mutableListOf<Chapter>()
|
val toAdd = mutableListOf<Chapter>()
|
||||||
|
|
||||||
// Chapters whose metadata have changed.
|
// Chapters whose metadata have changed.
|
||||||
|
Loading…
Reference in New Issue
Block a user