Picard-Last.fm.ng-Plugin
Picard-Last.fm.ng-Plugin copied to clipboard
Plugin spits out different genres for one artist
Hey there..
As written in the title, the plugin uses more than one genre for a single artist. When I'm tagging the Band "The Only Ones", i get Punk, Power Pop, New Wave and Rock. The genre should be New Wave, because this tag is first place for the band...
This is the main part of my config.ini
[global]
soundtrack_is_no_genre = True
ignore_feat_artists = False
; string used as fallback, when no tag value could be determined
default_unknown = Unknown
; this disables both album and track stats if set to False
print_tag_stats = True
print_tag_stats_album = False
print_tag_stats_track = True
; only enable collect_unused if you have sqlite (windows and macos may not)
collect_unused = False
lastfm_host = ws.audioscrobbler.com
lastfm_port = 443
lastfm_key = 0a8b8f968b285654f9b4f16e8e33f2ee
[category-defaults]
; do/don't collect tags for that category // MUSS ANSCHEINEND ANBLEIBEN
enabled = true
; a hard limit for how many tags are assigned to the metatag
limit = 2
; name of another category, unused tags in this category will be used in the given one.
overflow =
; add all tags from the other category to this one
prepend =
; used to join tags if >1 are to be used (None to use multtag)
separator =
; alphabetically sort tags before joining to string
sort = False
; percentage; only the tags with a score above x% of the most popular are used
threshold = 0.1
; apply titlecase() function to each tag
titlecase = True
[category-grouping]
# grouping is used as major/high level category
limit = 0
separator = ", "
overflow =
metatag_album = albumgrouping
metatag_track = grouping
[category-genre]
limit = 1
threshold = 0.1
prepend =
metatag_album = albumgenre
metatag_track = genre
I think it only grabs the genre of the single tracks...
Hm, why isn't it possible to use the Artist top genre for every album eg?
I have had the same issue. Someone finally posted a solution that works to update the last.fm source script for mp3tag which I use anyways after running an album through Picard. I disabled Last.fm.ng in Picard and use that again (it wasn't working for perhaps a couple years). I had only switched to Last.fm.ng because that plugin stopped working anyhow. See here: https://forums.mp3tag.de/index.php?showtopic=6536&st=30&p=94586&#entry94586
To edit the script so that it only grabs the ONE top genre tag I deleted the following from the end of the script:
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
And then insert your API key from Last.fm at the necessary location in the script. The only problem I have with this script is I can't run it through a large number of albums at once - you need to do one artist at a time or it will apply the first artist's top genre to all the following files.