Results 1 to 6 of 6

Thread: Artist Sort Order in Rhythmbox

  1. #1
    Join Date
    Jun 2008
    Beans
    Hidden!

    Question Artist Sort Order in Rhythmbox

    Anyone have any idea how the "Artist Sort Order" and "Album Sort Order" works in Rhythmbox (Right-click>Properties>Sorting)?

  2. #2
    Join Date
    Apr 2006
    Beans
    Hidden!

    Re: Artist Sort Order in Rhythmbox

    These options allow you to specify an alternate name for artists and albums for the purpose of ordering them alphabetically in the browser and song list.

    For example, I have an mp3 with the song "Scene of the Crime" by The Amazing Royal Crowns. Originally, this would be filed near the other artists starting with T (e.g. Temple of the Dog) because the artist name starts with "The." If I write "Amazing Royal Crowns, The" in the Artist Sort Order, it will appear next to the other artists whose names start with A (e.g. Alice in Chains).

  3. #3
    Join Date
    Jun 2008
    Beans
    Hidden!

    Re: Artist Sort Order in Rhythmbox

    Thanks! I wish this was in the Help somewhere; it's so useful.

  4. #4
    Join Date
    Dec 2007
    Beans
    44

    Re: Artist Sort Order in Rhythmbox

    is there any way to set this automatically?
    so that i don't have to enter each artist that starts with "the"?

    thanks...

  5. #5
    Join Date
    Apr 2006
    Beans
    Hidden!

    Re: Artist Sort Order in Rhythmbox

    No. I've read the developer discussions regarding this and the consensus was that there would be no way to account for multiple languages. You can select multiple files within rythmbox using shift+click to do all songs of an artist at once.

    The only other thing I can think of is closing rhythmbox and running a command line filter on ~/.local/share/rhythmbox/rhythmdb.xml, something along the lines of:
    Code:
    cd ~/.local/share/rhythmbox
    cp rhythmdb.xml old-rhythmdb.xml
    sed 's/<artist>The \([^<]\+\)<\/artist>/\0\n    <mb-artistsortname>\1, The<\/mb-artistsortname>/' old-rhythmdb.xml > new-rhythmdb.xml
    mv new-rhythmdb.xml rhythmdb.xml
    Then restart rythmbox to see if anything has changed.

    If you want to get back to your database before any changes were made, just do:
    Code:
    cd ~/.local/share/rhythmbox/
    cp old-rhythmdb.xml rhythmdb.xml
    This command uses sed to look for any songs with an <artist> tag starting with "The" and creates a new tag on the next line <mb-artistsortname> with the "The" moved to the end of the name. Of course, this assumes your files have English tags and "The" is capitalized in all your tags.

    If you want to try this, definitely make a copy of ~/.local/share/rhythmbox/rhythmdb.xml in another directory first. I've had to restore my rhythmdb.xml a couple of times from backups because I forgot which file was which and deleted the original.

  6. #6
    Join Date
    Jun 2011
    Beans
    4

    Re: Artist Sort Order in Rhythmbox

    There is a plugin for that now,

    http://code.google.com/p/artistprefix/

    hope this helps

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
  •