Skip to content

Commit

Permalink
Fix ignore_duplicates missing filtered tracks
Browse files Browse the repository at this point in the history
Really just checking for duplicates again when unfiltering. A bit messy
but it does the job.

Relates to #423.
  • Loading branch information
gavtroy authored and flyingmutant committed Nov 5, 2023
1 parent a37bfb0 commit 23afab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ static void hash_add_to_views(void)
while (e) {
struct track_info *ti = e->ti;

if (!is_filtered(ti))
if (!is_filtered(ti) && !(ignore_duplicates && track_exists(ti)))
views_add_track(ti);
e = e->next;
}
Expand Down

0 comments on commit 23afab3

Please sign in to comment.