[WS] Last.fm

Mein von Dir angepasstes Script "Last.fm#Top Tags 3 Genres_to_FILETYPE" funktioniert nicht mehr. Hat last.fm etwas geändert? Auch "Import Artist picture as cover (big)" geht nicht mehr.

Last.fm changed their site and their API wasn't working for a few days, but now it actually works it just doesn't match any artists.

Can someone more capable than me, check if they've chaned the API?

Ich verstehe den letzten Satz so: Kann jemand, der fähiger ist als ich, überprüfen, ob die API geändert wurde?

Yes :slight_smile:

Hallo Dano,
das o. g. Script funktioniert seit einigen Tagen nicht mehr. Liegt es an mir oder wurde die API von LastFm geändert? Dein Script wurde über 4000mal heruntergeladen. Es müssten also viele User ein ähnliches Problem haben. Im Forum habe ich darauf keinen Hinweis gefunden. Lieber Dano, würdest Du Dein Script 'mal überprüfen?
Gruß Susanne

First of all, thanks for making this script Dano I absolutely love it! Been using it forever now and made tagging so much better!

It is however still not working sadly :frowning:

Anyone have any idea how to get it working again, missing it very much.

Regards,

Fuzzed :music:

Ich möchte mich nochmal in Erinnerung bringen mit meiner Frage nach einer neuen Version lastfm.zip. Ist es so, dass lediglich die Schnittstelle von lastfm einseitig geändert wurde oder dass überhaupt kein Zugriff auf die lastfm-Datenbank möglich ist. Kann jemals mit einem neuen Script Use first 3 (or more) artist top tags as genre gerechnet werden?

Für Picard gibt es ein Plugin, das drei Genres unterstützt und intern mit der last.fm API v2.0 arbeitet. Download (Letztes Update: v0.14 vom 25. Nov. 2015)

Angenehmer Seiteneffekt: Man umgeht die Probleme mit dem MusicBrainz Web Source Script

Da ich auch weiterhin das Web Source Script für Metal Archives nutzen will bzw. muss, weil es kein MA Plugin für Picard zu geben scheint, ist es zumindest für mich ein sowohl-als-auch: Erst Picard, dann mp3tag - leider

Hello, uisng mp3tag 2.79 and wants to update also the genre tag with last.fm.
Unfortunaltely last.fm script does not work any longer.
Any update is appreciated.

Confirmed, running v2.9 and last.fm source dead here also
Please update

Hey mates, someone explained to me how to fix the script, I only applied it to the 'Last.fm#Top Tags 3 Genres.src' script but it should work similar for the others (1 genre, artist pic, etc.) Open it with Notepad++ or something similar to edit and save.

Improved: Last.fm#Top Tags 3 Genres.src

# Mp3tag (2.38 or higher) Parsing for Last.fm by dano
# Save it in your Mp3tag data directory, 
# e.g. C:\Documents and Settings\*username*\Application Data\Mp3tag\data\sources
#
#	DO NOT COPY/MODIFY AND REDISTRIBUTE THIS WITHOUT PERMISSION
#
#   Get the first 3 Top Tags as Genre to categorize your music
#
[Name]=Last.fm TopTags
[BasedOn]=www.last.fm
[AlbumUrl]=http://ws.audioscrobbler.com/2.0/?method=artist.gettoptags&artist=%s&api_key=YOUR_API_KEY
[WordSeperator]=+
[SearchBy]=$replace(%artist%,/,'%'252F,&,'%'2526)
[Encoding]=url-utf-8

[ParserScriptAlbum]=...
# ###################################################################
#					A  L  B  U  M
# ###################################################################
#debug "on" "C:\debug_Last.fm-Artist-TopTags_B.html" "20"

joinuntil "</toptags>"

regexpreplace "(?<=<name>)(\l)" "\u$1"
regexpreplace "\s(\l)" " \u$1"
regexpreplace "-(\l)" "-\u$1"

outputto "Genre"

findinline "<name>"
sayuntil "</name>"
findinline "</tag>" 1 1
if "<tag"
    do  
        say ", "
        findinline "<name>"
        sayuntil "</name>"
        
        findinline "</tag>" 1 1
    while "<tag" 1 # Change second parameter to determine the amount of style tags 1=3 Genres, 2=4 Genres,...
endif

Line 11 was changed, the only thing you need to do is insert your personal API key where it says 'YOUR_API_KEY' on line 11. You can register or login to Last.fm and obtain one here: http://www.last.fm/api/account/create

Only Contact email and Application name are required, and can be filled out with whatever you like. You do not need to access the provided email account to verify anything. Click Submit and copy/paste the API Key over YOUR_API_KEY in the line above

Good luck with it! It worked for me, it should for you. Am a happy man today.

Explanation by person that helped me:

Thanks so much, been waiting for this for a LONG time! I edited it to do just the ONE top tag by deleting the last couple of lines:

findinline "</tag>" 1 1
if "<tag"
do
say ", "
findinline "<name>"
sayuntil "</name>"

findinline "</tag>" 1 1
while "<tag" 1 # Change second parameter to determine the amount of style tags 1=3 Genres, 2=4 Genres,...
endif

A change that would be super helpful would be if it could do a selection of multiple artists in one go in mp3tag, rather than just one artist at a time. (If multiple artists are selected, I'm sure you know, it only applies the genre pulled from the first artist it finds) Any chance that would be a possibility?

QUOTE (ouisltagger @ Mar 17 2017, 22:58) <{POST_SNAPBACK}>
Thanks so much, been waiting for this for a LONG time! I edited it to do just the ONE top tag by deleting the last couple of lines:
findinline "</tag>" 1 1
if "<tag"
do
say ", "
findinline "<name>"
sayuntil "</name>"

findinline "</tag>" 1 1
while "<tag" 1 # Change second parameter to determine the amount of style tags 1=3 Genres, 2=4 Genres,...
endif

A change that would be super helpful would be if it could do a selection of multiple artists in one go in mp3tag, rather than just one artist at a time. (If multiple artists are selected, I'm sure you know, it only applies the genre pulled from the first artist it finds) Any chance that would be a possibility?


hi
i got always this error , can i fix it?

thanks

Check whether mp3tag has access to the internet at all or whether it is blocked e.g. by the firewall:
Use function Help>Check for new version.
If you do not get a message box then MP3tag is blocked.

hi
i have checked it works , i can connect to the net
i use now the script @ post 1 #1 post
thanks

hi
is there a way to change the "\\" with ";"
thanks

The \\ looks to me like the indicator for a multi-value field.
You can merge several fields of the same type to just one with an action of the type
Merge duplicate fields https://docs.mp3tag.de/actions/merge-duplicate-fields
There you can also set the separator.

hi
i mean the script add many keywords separated by \\ , i would like to change the script to add many keywords separated by ;
thanks
happy new year in late :wink:

The scripts are plain text, so you can edit them as you like.
If you feel uncomfortable with the scripting language, you could use the action as an alternative.

I adapted the script from dano, so it can be used to get correct title, artist. album, cover and genre. it does work with the current last.fm API 2.0 - you still need to create an API account as described before.
also I could not find a way, to make the parser "fool proof" - which means, if last.fm does not have a genre set, the script will throw an error:

best regards