[WS] Last.fm


#21

Hello,

Thank you Dano for making this script. While this does use the Last.fm API, it's not exactly what I have been looking for. I have searched through this forum as well as on other sites looking to see if there was a mp3tag extension which copied Artist, Album, and Track metadata from Last.fm, as opposed to just genre tags. So essentially, if there is an mp3tag extension which pulls all of an album's data from Last.fm, could you link me to it?

If such an extension does not exist, is it possible to make one, or is there some technical limitation in this regard?

Thanks for your help!

sivaram2


#22

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.


#23

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?


#24

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


#25

Yes :slight_smile:


#26

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


#27

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:


#28

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?


#29

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


#30

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.


#31

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


#32

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:


#33

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?


#34
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

#35

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.


#36

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


#37

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


#38

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 http://help.mp3tag.de/options_format.html#merge
There you can also set the separator.


#39

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:


#40

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.