Page 10 of 11 FirstFirst ... 891011 LastLast
Results 91 to 100 of 108

Thread: Rhythmbox plugin: A method to sift and remove duplicate songs?

  1. #91
    Join Date
    Jul 2009
    Location
    New Delhi,India
    Beans
    35
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Rhythmbox plugin: A method to sift and remove duplicate songs?

    Hi,i am new to rhythmbox and was looking for something like this.
    i have similar problems as the previous post,
    do you start it or does it work automatically?
    nothing like "Duplicates" shows up in the side pane.

    Could this have to do anything with maverick?
    Processor- Intel Dual core 3.0 Ghz
    RAM-1 GB DDR2
    Graphics Card-1 GB Nvidia 9400GT
    Dual Boot-Ubuntu 10.10 and Windows 7 Ultimate

  2. #92
    Join Date
    Sep 2010
    Beans
    33
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Rhythmbox plugin: A method to sift and remove duplicate songs?

    i installed the plugin, but I have no idea how to use it, could someone explain?

    I activated the plugin, and restarted rhyhmbox, but I see no option for duplicates anywhere, I've played with the preferances, and have so many duplicates, however, nothing changes at all?

  3. #93
    Join Date
    Nov 2010
    Beans
    11

    Re: Rhythmbox plugin: A method to sift and remove duplicate songs?

    I have them same problem as above, anyone able to help?

  4. #94
    Join Date
    Oct 2010
    Beans
    2

    Re: Rhythmbox plugin: A method to sift and remove duplicate songs?

    Same here. The plugin sounds fantastic but I am afraid it is not working for me with Ubuntu 10.10. The duplicates never show up in the side panel.

  5. #95
    Join Date
    Nov 2010
    Beans
    2

    Re: Rhythmbox plugin: A method to sift and remove duplicate songs?

    There's a small, very fast python script to remove duplicates here

  6. #96
    Join Date
    Jun 2008
    Beans
    2

    Re: Rhythmbox plugin: A method to sift and remove duplicate songs?

    Well im really trying to switch to linux from windows i really like it so far but and getting a little frustrated with this one and could use some help. ive Googled my bum off and still no prevail.

    it shows up as duplicate source under plugins and i saw it on the left pain once! but was not able to use it. not i can not get it back on that pain but it remains in the plugin list and it is checked off.

    any help would be greatly appreciated.

  7. #97
    Join Date
    May 2008
    Beans
    3

    Re: Rhythmbox plugin: A method to sift and remove duplicate songs?

    hii ..
    i am trying to download the file from ur website .. but am unable to do so .. can you attach it or something .. ( i am downloading from Taiwan .. )

  8. #98
    Join Date
    Oct 2005
    Beans
    135

    Re: Rhythmbox plugin: A method to sift and remove duplicate songs?

    I converted the script in Tappir's post #98 of this tread to actually move the duplicate mp3s to a temporary directory. Since I don't do python I did it in php. I found that about 10% of my mp3s were duplicates. This just moves them to .../Desktop/tmp from the source directory .../Desktop/mp3, in my case. Make sure that the destination directory for the duplicates exists,
    or modify this script to create it if it doesn't. I then deleted the duplicates from the temporary directory after I was confident that the script did what I expected. I gained about 10 gigs of disk space by removing duplicates.

    William

    <?php


    $db = "/home/bill/.local/share/rhythmbox/rhythmdb.xml";

    $doc = new DOMDocument();
    $doc->load( $db );

    $entries = $doc->getElementsByTagName( "entry" );

    $cnt = 0;
    $songs = array();

    foreach( $entries as $e ) {
    $type = $e->getAttribute("type");
    if ($type=="ignore") {
    continue;
    }
    else if ($type=="lastfm-station") {
    continue;
    }
    else if ($type != 'song') {
    continue;
    }

    $artist = $e->getElementsByTagName("artist")->item(0)->textContent;
    $title = $e->getElementsByTagName("title")->item(0)->textContent;
    $album = $e->getElementsByTagName("album")->item(0)->textContent;
    $duration = (int)$e->getElementsByTagName("duration")->item(0)->nodeValue;
    $location = urldecode($e->getElementsByTagName("location")->item(0)->textContent);

    $flag = false;

    foreach ($songs as $s) {
    $tdif = abs($duration - $s["duration"]);
    if (
    $title == $s["title"] &&
    $artist == $s["artist"] &&
    ($tdif < 2 || $album == $s["album"])

    ) {
    printf("%s\n", $location );
    $location = str_replace("file:///home/bill/Desktop/mp3/", "", $location);
    $cmd = "mv \"/home/bill/Desktop/mp3/$location\" \"/home/bill/Desktop/tmp/$location\"";
    system($cmd);
    $flag = true;
    break;
    }
    }

    if ($flag) {
    continue;
    }


    $a = array();
    $a['title'] = $title;
    $a['artist'] = $artist;
    $a['duration'] = $duration;
    $a['album'] = $album;
    $a['location'] = $location; // just to see the original

    array_push($songs, $a);

    $cnt++;
    printf("%d\n", $cnt);

    }
    ?>

  9. #99
    Join Date
    Apr 2007
    Location
    Maine
    Beans
    156
    Distro
    Ubuntu Mate 15.04 Vivid Vervet

    Re: Rhythmbox plugin: A method to sift and remove duplicate songs?

    I've tried the plug in developed by Scrawl and mihai007. Seems to work quite well! Thanks for all that work!

    Thanks to this duplicate finder, I have discovered a problem with my music library. Something (some app) is constantly rearranging my files and folders! I keep my music in folders "Artist>Album>Tracks". I'm finding duplicate tracks being created with a separate folder for each album. "Artist-Album>Tracks"
    I use Banshee as a rule. Rhythmbox has always been there in the background and never caused any problems. I recently tried Media Monkey in a Windows VM. Do you suppose Media Monkey is rearranging my library in the background?
    "Named must your fear be before banish it you can."

  10. #100
    Join Date
    Apr 2007
    Location
    Maine
    Beans
    156
    Distro
    Ubuntu Mate 15.04 Vivid Vervet

    Re: Rhythmbox plugin: A method to sift and remove duplicate songs?

    Quote Originally Posted by pbhill View Post
    I've tried the plug in developed by Scrawl and mihai007. Seems to work quite well! Thanks for all that work!
    Well, it worked once but not again. I don't see any duplicate file in the sidepane now. Is there some way to start/stop this script?
    "Named must your fear be before banish it you can."

Page 10 of 11 FirstFirst ... 891011 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •