Results 1 to 4 of 4

Thread: How can i print track lists from rhythmbox or banshee?

  1. #1
    Join Date
    Nov 2007
    Beans
    2

    Question How can i print track lists from rhythmbox or banshee?

    I recently made a few playlists and burned them to CD.
    Is there a way of turning a playlist into a simple .txt file or equivalent, which shows only the artist name and song title.
    I would very much like to be able to print off a list and put it in the CD case of the CDs I am burning. Is there a utility to do this for me and maybe make it fit in the CD cover?
    Thanks in advance
    xo

  2. #2
    Join Date
    Oct 2006
    Location
    Baltimore, MD
    Beans
    667

    Re: How can i print track lists from rhythmbox or banshee?

    Quote Originally Posted by kbabeatbox View Post
    I recently made a few playlists and burned them to CD.
    Is there a way of turning a playlist into a simple .txt file or equivalent, which shows only the artist name and song title.
    I would very much like to be able to print off a list and put it in the CD case of the CDs I am burning. Is there a utility to do this for me and maybe make it fit in the CD cover?
    Thanks in advance
    xo
    I would like to be able to do this too. However, I'd want to grab a little bit more from the ID3 tag, like what's in the license and comment field. I'd be fine running it from nautilus or command line, but going to each track and getting this info is quite tedious!
    I am not a lawyer...yet.
    Music Manumit Podcast - remixable Creative Commons music!
    My neglected blog: http://douglasawh.wordpress.com
    My website: http://opensourceplayground.org

  3. #3
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: How can i print track lists from rhythmbox or banshee?

    That shouldn't be too complicated, if you export the playlist from banshee as .m3u file, you could then use a shell script with some CLI tool like id3info (included in the libid3-tools package) to read the tags from each file in the playlist and parse them to a more human-readable format.


    Of course if writing such script is easier than doing it by hand depends on how long playlist you have...

    edit: Actually exporting to .xspf instead of .m3u might be a good idea, that would give you a much more useful XML file.
    Last edited by mcduck; January 29th, 2012 at 10:34 PM.

  4. #4
    Join Date
    Oct 2006
    Location
    Baltimore, MD
    Beans
    667

    Re: How can i print track lists from rhythmbox or banshee?

    Quote Originally Posted by mcduck View Post
    Of course if writing such script is easier than doing it by hand depends on how long playlist you have...
    I have to do this weekly. It's a major time-suck. There's no way scripting it won't be quicker.

    Below is what I have so far (it's not from banshee, but best-practices call for me to group them all in the same directory anyway, so it is quite a bit better than what I had). I don't really know sed and awk, so it will take some time to figure out how to parse the text, but at least now I don't have to click in banshee 1000 times to get the info.

    Code:
    #!/bin/bash
    # It's not pretty, but I think it's better than what I've got now!
    
    echo "This script requires mid3v2. If nothing happens, make sure it is installed. Was already installed on my system so I have no idea how it will react if you don't have it installed."
    echo "As coded, the script requires being in the dir you want the output from"
    
    #This part will rename all your files and dir and take the spaces out and replace them with underscores.
    for f in *; do
         file=$(echo $f | tr ' ' _)
         [ ! -f $file ] && mv "$f" $file
    done
    
    
    cd .
    for file in `dir -d *` ; do
    mid3v2 -l "$file" >> test.txt
    done
    I am not a lawyer...yet.
    Music Manumit Podcast - remixable Creative Commons music!
    My neglected blog: http://douglasawh.wordpress.com
    My website: http://opensourceplayground.org

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
  •