Picard-Last.fm.ng-Plugin
Picard-Last.fm.ng-Plugin copied to clipboard
How to change category-decade from 00s to 2010 please?
Hello
First and foremost thank you for this excellent plugin!
What's the correct code for category decade to display for example '2010s' instead of the default '00s' please?
Thank you
adding the '00s' to the list of translations in your config.ini
should work:
[translations]
; <name1> is translated into <name2>
00s = 2000s
10s = 2010s
Hey fdemmer, thanks for your reply. Unfortunately that didn't work. I did resolve this once before via the old MusicBrainz Picard forum where someone edited the code for me, but unfortunately that forum no longer exists and I forgot to backup my defaults.ini file before I reinstalled Windows!
I'm sure the original 'category-decade- code of regexp = ^([1-9][0-9])*[0-9]0s$
was edited to display for example '2010s' instead of the default '10s'. Any ideas please?
The default regular expression for decades (^([1-9][0-9])*[0-9]0s$
) matches "10s" as well as "2010s". That means, when there is a tag in last.fm that is called "2010s" you will get that tag, same with "10s". the result you get ("2010s" or "10s") only depends on which one is more popular on last.fm.
the plugin does not convert "2010s" to "10s". it does not know what "2010s" is :)
all it does is take tags from last.fm and detect (using the regular expression) if a tag looks like a decade. if it does, the most popular one is used as the "decade" value in picard.
if you do not want "10s" you need to change the expression to not recognize "10s" as a decade. this would only match 4 digit centuries (no "90s", only "1990s"): ^([1-9][0-9])+[0-9]0s$
learn, play around and experiment with regular expressions here: https://regexr.com/