From 532575e29e196ed59a5457fd4b4c6af5e0740287 Mon Sep 17 00:00:00 2001 From: Secozzi <49240133+Secozzi@users.noreply.github.com> Date: Sat, 26 Sep 2026 18:53:32 +0200 Subject: [PATCH] Fixed entries being incorrectly marked as duplicates when tracked with some trackers (#4008) If a tracker doesn't set `remote_id`, it defaults to 0 so comparing entries based on `remote_id` when it's 0 doesn't make sense --- CHANGELOG.md | 1 + data/src/main/sqldelight/tachiyomi/data/mangas.sq | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 70173b26f..0742fbf64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co - Fixed default category and manga sometimes not getting their category set when restoring a backup ([@Secozzi](https://github.com/Secozzi)) ([#3891](https://github.com/mihonapp/mihon/pull/3891)) - Fixed AniList rate limit ([@MajorTanya](https://github.com/MajorTanya)) ([#3942](https://github.com/mihonapp/mihon/pull/3942)) - Fixed library search when clicking source name in manga info screen ([@choppeh](https://github.com/choppeh)) ([#4002](https://github.com/mihonapp/mihon/pull/4002)) +- Fixed entries being incorrectly marked as duplicates when tracked with some trackers ([@Secozzi](https://github.com/Secozzi)) ([#4008](https://github.com/mihonapp/mihon/pull/4008)) ## [v0.20.4] - 2026-08-05 ### Fixed diff --git a/data/src/main/sqldelight/tachiyomi/data/mangas.sq b/data/src/main/sqldelight/tachiyomi/data/mangas.sq index b5d1909f7..272f1fcf8 100644 --- a/data/src/main/sqldelight/tachiyomi/data/mangas.sq +++ b/data/src/main/sqldelight/tachiyomi/data/mangas.sq @@ -126,6 +126,7 @@ track_dupes AS ( INNER JOIN manga_sync S2 ON S1.sync_id = S2.sync_id AND S1.remote_id = S2.remote_id + AND S1.remote_id != 0 AND S1.manga_id != S2.manga_id WHERE S1.manga_id = :id ),