amaroK Last.fm tags

Amarok 1.x Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on git.opendesktop.org

0
Score 50%
Description:

This script fetches your tags from Last.fm for artists, albums, and tracks. It stores them as id3v2 COMM tags in your music files and appends them to the comment for the given track in amaroK's collection where they can be used to contruct smart playlists.

So far this script only fetches your tags, it doesn't syncronize changes you make locally back to Last.fm. Probably this feature should wait until the implementation of "labels" which is coming in amaroK 1.5.

Also so far it is only possible to fetch tags for a selection within a
playlist. The other context sub-menus just provide helpful messages saying that this feature isn't implimented yet.

As usual this software comes with no warrenty, it might eat your lunch, etc.. That said it works for me.

I owe a large debt of gratitude to Miguel Angel Alvarez whoes amaroK Replaygain script served as the skeleton of this one. Thanks Miguel!

Also, the tag fetching and parsing code comes pretty much directly from Last.fm tags playlist by Mark Kretschmann.

Dependencies:
* amaroK 1.4.1
* Python
* Python Mutagen
Last changelog:

12 years ago

0.1.2

Bugfix. Script was exiting with an error if last.fm was unavailable. Now it just sends a popup and waits for further input.

0.1.1

The script can now fetch tags for artist/albums/tracks with non-ASCII characters. TODO: Unfortunately the pop display shows the characters munged, but.

dominik

12 years ago

I made some changes to fetch toptags of artists/tracks to make tagging independent of last.fm user account.

the url needed is:
url = "http://ws.audioscrobbler.com/1.0/track/" + \
urllib.pathname2url( artist ) + "/" + \
urllib.pathname2url( title ) + "/toptags.xml"

@ochoha
if you have time, it would be cool if the script would use following algo:
1. fetch user dependent artist/title/album tags
2. fetch toptags from artist/title/album
3. compare them and remove duplicates
4. reorder them depending on their count
5. select the first 3 (configurable) user tags and the first 3 toptags

thanks a lot for your great work!

Report

C

ochoha

12 years ago

Hi Dominik,

Thanks for the patch and the kind words. Sorry I didn't notice your post sooner.

I like your idea of including the top tags. I think I'd like to make it a configuration item though, since sometimes I simply don't agree with the tags other people use.

One way or the other the next time I work on this I'll add it.

-mark

Report

paven

11 years ago

Well there are another script for syncing with global tags.
I just waiting for this script to access the amaroK labels.(preferably up and down)so my last.fm tags becomes synced right in to my browser and my changes on my browser is stored on last.fm

thank you for a great script..

Report

C

ochoha

12 years ago

Might very well supercede this script. I only became aware of them when it was nearly done already.

At any rate, if you want to run this script over your entire collection you can, just load everything into the playlist, select all, and run the script for selected files.

Thanks for the kind works,

Report

Superstoned

12 years ago

this is soo cool man... make it for 1.5 as soon as possible. i just noticed the labels function (svn amarok), looks good, esp if it fills automatically ;-)
can you let this script do it for the whole collection? maybe it should be in amarok on the last.fm configure window to let it scan & label the whole collection automatically...

Report

12 years ago

0.1.2

Bugfix. Script was exiting with an error if last.fm was unavailable. Now it just sends a popup and waits for further input.

0.1.1

The script can now fetch tags for artist/albums/tracks with non-ASCII characters. TODO: Unfortunately the pop display shows the characters munged, but.

File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
version
0.1.1
updated Nov 06 2006
added Nov 01 2006
downloads today
0
page views today 3
System Tags addon