duplicate remover
Ian Monroe
ian at monroe.nu
Fri Jun 8 22:25:13 UTC 2007
On 6/8/07, Luke <colorado_mountains2000 at yahoo.com> wrote:
> I want to write a duplicate song remover plugin. Not
> just removed from the playlist but deleted from the
> disk. I searched the wiki for "duplicate" and didn't
> find one so I assume it isn't already written. I want
> it to be smart: delete the song with the lower
> bitrate, make softlinks when a compilation is
> involved, make the most complete ID3 tag replacing
> "Unknown" with what is known amongst the dups, etc...
>
> First step would be to write a bunch of SQL scripts to
> identify dups. On that front is the default amarok
> database sufficient or should I regen my database to
> the mysql version?
Just access amarok via the dcop interface. `dcop amarok collection
query` then it wouldn't matter what the backend database is.
> I'm very impressed how amarok can
> tell if two different songs are in the same album
> (even when the ID3 tags don't align 1to1) so I should
> probably research how that works.
I don't believe you... I'm pretty sure it looks at the first kilobyte
as well as a dump of all the tag data.
Really its pretty simple, I would encourage your dupe finder to
perhaps not use Amarok's database at all since its nothing special.
Perhaps just make a plain ole hash. Or use musicbrainz.
Ian
More information about the Amarok
mailing list