Picard-Last.fm.ng-Plugin icon indicating copy to clipboard operation
Picard-Last.fm.ng-Plugin copied to clipboard

Possible to configure which tags are written to?

Open psychoadept opened this issue 9 years ago • 2 comments

Thanks for updating this plugin!

I had been using the original last.fm plus, but this one seems much easier to work with. However, I really only used it for Location and Genre, and I'd hacked last.fm plus to write "Country" and "City" to TXXX/Location. Could there be a way to configure what frames the tags are written to?

psychoadept avatar Oct 21 '15 01:10 psychoadept

is possible by configuration with some limitations with this config:

[category-country]
limit = 1
threshold = 0.7
metatag_track = comment:Songs-DB_Custom4

[category-city]
limit = 2
threshold = 0.7
prepend = country
separator = ", "
metatag_track = comment:Location
  • you have to keep limit = 1 for country to determine a resulting tag, so Custom4 will still be written
  • add prepend = country to put the result of the country category in front of the result of city
  • increase limit to 2 for city to make room for the extra value from country (however, if there was no city, there could be two countries)
  • if you want use the separator to joint the results to a single tag string with a comma
  • set metatag_track = comment:Location to write the city category to that frame/metatag
  • it is not possible to prepend the city to the country, categories are processed in a fixed sequence

so there are a lot of limitations to what you can do right now. but requests like yours point those out, so i can improve the code. getting rid of the limitations of the sequence in which categories are processed is on the top of my list, but a rather big change and will take some time.

fdemmer avatar Oct 21 '15 11:10 fdemmer

Thanks! I'll fiddle with that, and also hope you can work out something on your end. :)

psychoadept avatar Oct 22 '15 03:10 psychoadept