Skip to content

Tracks duplicated on import #180

@arkeine

Description

@arkeine

Hi,

On every importation, I get duplicated entries in data base.

I take a look here #122 and here #129 but it's not exactly the same problem.

I never removed files, I just add new files and import them. The importation end successfully, but when I run this script on the data base, I can see multiple entries for the same song:

SELECT track_number,title,album,COUNT(*) FROM sonerezh.songs G ROUP BY track_number,title,album HAVING COUNT(*) > 1;

So, I remove these links manualy with another script. Is it only me who have this bug?

PS: The clean script:

DELETE sonerezh.songs FROM sonerezh.songs LEFT OUTER JOIN ( SELECT MIN(id) as id, track_number,title,album FROM sonerezh.songs GROUP BY track_number,title,album ) as KeepRows ON sonerezh.songs.id = KeepRows.id WHERE KeepRows.id IS NULL;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions