maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Help ! How can I remove duplicate music files ? (https://talk.maemo.org/showthread.php?t=65862)

louiegoat 2010-11-19 02:41

Help ! How can I remove duplicate music files ?
 
I synced my music files from my PC to my N900. I now have 2376 music files on the N900. I tried to delete the duplicates a few at a time but it is taking too long. Can this be done in an easier fashion without losing the songs that came on the N900 ? Is this a bug with the media player ? I do not have a memory card installed in the device at this time. Thanks, maybe someone can help me find the info I'm looking for, as I could not find it after searching.

Cue 2010-11-19 03:40

Re: Help ! How can I remove duplicate music files ?
 
fdupes is your best bet

peacekeper 2010-11-19 04:05

Re: Help ! How can I remove duplicate music files ?
 
Hey Cue just one question what is fdupes? app? program? and where i can get it. well those are 3 questions instead not one

Cue 2010-11-19 04:13

Re: Help ! How can I remove duplicate music files ?
 
fdupes is a linux command line program that can list and/or delete duplicate files in any directory. I have not installed it on my N900 myself but use it often on other linux systems. It can be found here but just be warned that it is in devel

http://maemo.org/packages/view/fdupes/

Joseph.skb 2010-11-19 06:07

Re: Help ! How can I remove duplicate music files ?
 
Quote:

Originally Posted by louiegoat (Post 877588)
I synced my music files from my PC to my N900. I now have 2376 music files on the N900. I tried to delete the duplicates a few at a time but it is taking too long. Can this be done in an easier fashion without losing the songs that came on the N900 ? Is this a bug with the media player ? I do not have a memory card installed in the device at this time. Thanks, maybe someone can help me find the info I'm looking for, as I could not find it after searching.

I used File Manager > N900 > Music folder and organized my music files from there. Just like what you do on a regular PC including move, delete. Unfortunately don't know how to rename or edit the album contents. Hope this helps! :cool:

Edit to add: Or you could simply remove all the music files from the N900 and reinstall the ones you wanted (again). I did that for my contacts that got duplicated when sync with Ovi Suite (but for contacts, I deleted all from Ovi Suite instead since I actively edit them on the N900).

louiegoat 2010-11-19 06:31

Re: Help ! How can I remove duplicate music files ?
 
Thanks to all who responded. I will try it tomorrow if I manage to get some time. I have quite a bit of music on my computer and now on my N900 (with a lot of duplicates). I use my N900 to listen to music but I hate repeating songs. THANX AGAIN !

debernardis 2010-11-19 11:26

Re: Help ! How can I remove duplicate music files ?
 
I haven't found an usable package for fdupes in maemo repositories (the armel package is empty) - but there's one in easy debian which works well indeed.

Captwheeto 2010-11-19 13:43

Re: Help ! How can I remove duplicate music files ?
 
find . -type f -print0|xargs -0 md5sum|sort|perl -ne 'chomp;$ph=$h;($h,$f)=split(/\s+/,$_,2);print "$f"."\x00" if ($h eq $ph)'|xargs -0 rm -v --

That should work. Found it here
http://www.commandlinefu.com/command...directory-tree

Carlito 2010-11-19 13:46

Re: Help ! How can I remove duplicate music files ?
 
Maybe when you restored the backup, there was a new directory made. Little bug in Ovi.

Plug your N900 with USB on your computer and search for it.


All times are GMT. The time now is 03:44.

vBulletin® Version 3.8.8