Rhythmbox data from Last.fm

Registered 2011-02-03 by lachlan-00

This is a pair of scripts can take a text dump from last.fm and update your play counts.
It can also make all 'loved' tracks 5 stars.

### update (15/11/2012) ###
I will be updating this script to ensure it is working with the latest rhythmbox!

### NEWS

DEVELOPMENT MIGRATED TO GITHUB
https://github.com/lachlan-00/rb-mergeplays

These scripts will update your play count if the last.fm playcount is higher that what is surrently in your database.

Currently the project is two script files:
 * mergeplays.py
 * rate5loved.py

ABOUT THE SCRIPTS

I have used Last.fm for a lot longer than I've used Rhythmbox.
A lot of songs show last played as 'Never'.

That kinda sucks for shuffle especially on large libraries.

Another possibility is that your database gets corrupted and has to be removed.
You lose everything!!!
But with Merge Plays you can restore some of the lost information.

--- REQUIREMENTS ---

Information/Guide to lastexport.py
   http://bugs.foocorp.net/projects/librefm/wiki/LastToLibre
Lastexport.py - Script
   http://gitorious.org/fmthings/lasttolibre/blobs/raw/master/lastexport.py

--- MERGEPLAYS.PY ---

This script that will parse a text file and add each play to the current total in Rhythmbox OR create one if it's never been played. It
The format of the text is the same as a lastexport.py dump file and are tab seperated.

EXAMPLE OF DUMP FILE:
*not used* *TRACKTITLE* *ARTIST* *ALBUM*
1324427891 Nyctophobia (Remixed by [:SITD:]) Painbastard Klangfusion Vol.1 dd3b2636-4766-4
1324426612 Winter Mantus K├Ânigreich Der Angst 35a0344e-f843-44ba-a16

You can do this yourself or download lastexport.py and have it do the work for you. The first column of data is not used but replaced during the script execution so it must be in the dump.

USAGE
 * Download lastexport
 * Get a dump for your username.
      (lastscrape.py -u USERNAME -o OUTPUTFILENAME -t EXPORTTYPE)
      lastexport.py -u ocean_machine -o ./dump -t scrobbles
 * When that's finished grab Merge Plays and copy the dump file to the same folder.
 * Make a backup of your rhythmbox library.
    cp $HOME/.local/share/rhythmbox/rhythmdb.xml $HOME/rhythmdb.xml-backup
 * Run Merge Plays
    python ./mergeplays.py
 * Run rhythmbox with your updated play counts.

--- RATE5LOVED.PY ---

This script will take an export of your loved track from the last.fm website and make all those tracks 5 stars.
It works in the same way as merge plays and will be integrated into once script in the future

USAGE
 * Download lastexport
 * Get a dump for your username. (lastscrape.py -u USERNAME -o OUTPUTFILENAME -t EXPORTTYPE)
      lastexport.py -u ocean_machine -o ./dump -t loved
 * When that's finished grabRate 5 Loved and copy the dump file to the same folder.
 * Make a backup of your rhythmbox library.
    cp $HOME/.local/share/rhythmbox/rhythmdb.xml $HOME/rhythmdb.xml-backup
 * Run Rate 5 Loved
    python ./rate5loved.py

Everything is very basic right now but it works and I'll be making it better and more configurable.

Project information

Maintainer:
lachlan-00
Driver:
Not yet selected
Development focus:

trunk series 

lp:rb-mergeplays 
Browse the code

Programming Languages:
Python
Licences:
GNU GPL v3
()

RDF metadata

View full history Series and milestones

Rhythmbox Merge Last.fm Data trunk series is the current focus of development

All bugs Latest bugs reported

Downloads

Rhythmbox Merge Last.fm Data does not have any download files registered with Launchpad.

Announcements