Skip to content

A tool to update your local trackcount in the amarok database with the trackcount from last.fm

License

Notifications You must be signed in to change notification settings

alexdw-mgzi/klastfm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

First of all: This is not an Amarok script in the common sense. Do not install this in Amarok! Read this file to get the idea!

This tool grabs your statistic from last.fm and merges it into your existing amarok database.

Since last.fm relies on MusicBrainz ( musicbrainz.org ) for tagging, in general it is a good idea to tag your media with MusicBrainz Picard ( musicbrainz.org/doc/MusicBrainz_Picard ) By tagging your music with Picard (or any other ID3 tagger using MusicBrainz) you will get the best results when using this script. All tracks not recognized by this script are skipped.

It will synchronize your playcount (how often you listened to a specific track), the first and last played date of a track (with the accuracy of a few days) and it will also score your tracks by some voodoo algorithm.

The idea is derived from “Last Sync” ( kde-apps.org/content/show.php/Last+Sync?content=65784 ). I think the idea is pretty cool, but “Last Sync” is too old to work with newer versions of amarok. The last version is from 2007 and the main problems are that it handles sqlite databases only (Amarok 1.x) and it uses the legacy last.fm api.

Bring some time! Since you will synchronize a lot with last.fm api this script will run a long time. For my account (ca. 32000 tracks) it needs nearly 2 hours!

Listed on kde-apps.org kde-apps.org/content/show.php?content=127016

Sourcecode available at github.com github.com/gauda/klastfm

When reporting errors, please include your last.fm username in the bugreport!

Tested on Kubuntu natty with ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]

  • BACKUP YOUR DATABASE! You have been warned! :)

  • Copy config.yaml.example to config.yaml and edit it (add your last.fm api key! Google for it!)

  • ruby ./klastfm

There is a gentoo howto, too. Take a look here:

  • sudo apt-get install ruby ruby1.8-dev mysql-client libmysqlclient-dev libruby rubygems

  • sudo gem install mysql httparty progressbar activerecord logger –no-rdoc –no-ri

  • 0.6 More bugs fixed, removed the option to disable set dates functionality

  • 0.5 More bugs fixed

  • 0.4 Refactoring and bug fixing

  • 0.3 Added the possibility to set first and last played date for each track

  • 0.2 Added some more installation help

  • 0.1 Initial commit

About

A tool to update your local trackcount in the amarok database with the trackcount from last.fm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published