This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Amarok won't collect all tracks

Tags: None
(comma "," separated)
rengels
Registered Member
Posts
55
Karma
0
OS

Re: Amarok won't collect all tracks

Tue Sep 06, 2011 10:43 am
As Amarok is not even importing duplicate files into it's database, it can't help you.

However you can use the before mentioned amarok_collectionscanner.
If you run it over the whole collection you will get a nice XML summary of all the tracks. You can write a small script looking for duplicate IDs and then reporting the smaller of those files.

I was dreaming of a "clean-up assistant" that would help you do a clean up of the collection, but that's just a dream right now.
User avatar
kouche
Registered Member
Posts
16
Karma
0
OS

Re: Amarok won't collect all tracks

Tue Sep 06, 2011 10:48 am
Thank you Man :)
User avatar
kouche
Registered Member
Posts
16
Karma
0
OS

Re: Amarok won't collect all tracks

Tue Sep 06, 2011 1:52 pm
I removed all duplicated tracks using this command:
Code: Select all
find ~/Music  -iname '*(*).mp3' -exec cleanup-assistant1.sh '{}' \;

and this script named "cleanup-assistant1.sh" :
Code: Select all
    t=`echo "$1" | sed -e 's/ (1)//'`
    if (( `stat -c '%s' "$1"` < `stat -c '%s' "$t"` )); then
            rm "$1";
    else
            rm "$t";
    fi

Plus this command:
Code: Select all
find ~/Music -iname '*.mp3' -exec ~/cleanup-assistant2.sh '{}' \;

with this script named "cleanup-assistant2.sh" :
Code: Select all
    t=`echo $1 | sed -e 's/\.mp3/\.flac/'`
    if [ ! -e "$t" ]; then
            exit
    fi
    if (( `stat -c '%s' "$1"` < `stat -c '%s' "$t"` )); then
            rm "$1";
    else
            rm "$t";
    fi


and i have nothing duplicated, but when i reconfigured Amarok shows lot's of errors like this:
Code: Select all
Track ~/35 The Ballad Of Ira Hayes.mp3 with uid amarok-sqltrackuid://mb-xxx already committed. There seems to be a duplicate uid.

i checked this file and it was not on the same Album:
Image

then i used amarok_afttagger to recreate uid for files with this files:
Code: Select all
amarok_afttagger -r -d -n ~/Music

and reconfigured Amarok, but nothing changed and the same problem.
any other idea?


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft