فهرست منبع

Revert chapter equals method

len 7 سال پیش
والد
کامیت
71fc6fc257

+ 1 - 4
app/src/main/java/eu/kanade/tachiyomi/data/database/models/ChapterImpl.kt

@@ -31,10 +31,7 @@ class ChapterImpl : Chapter {
         if (other == null || javaClass != other.javaClass) return false
 
         val chapter = other as Chapter
-        // Forces updates on manga if scanlator changes. This will allow existing manga in library
-        // with scanlator to update.
-        return url == chapter.url && scanlator == chapter.scanlator
-
+        return url == chapter.url
     }
 
     override fun hashCode(): Int {

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/util/ChapterSourceSync.kt

@@ -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>()
 
     // Chapters whose metadata have changed.