I have a request: would it be possible that if the track is less than 30 seconds, to have %lastfm_play_count% simply show the %play_count% amount? Or alternatively make something like %play_count_enhanced% if that feels too inconsistent. This is because last.fm doesn't keep track of tracks less than 30 seconds long, I have to add:
$ifgreater(%length_seconds%,30,%lastfm_play_count%,%play_count%)
a bunch of times which is a bit awkward. Also, thank you again for this plugin, it's really great!
Unfortunately, I don't want to include %play_count% in the component itself because that relies on foo_playcount and doesn't come from this component. Probably 90% of users have that installed, but I still run into some who don't, and because I don't control foo_playcount it's hard to define a perfect solution there.
What I use everywhere in my personal theme is:
$max(%play_count%,%lastfm_play_count%)
// or
$puts(PC,$max(%play_count%,%lastfm_play_count%))
// combined with
$get(PC)
Using those is a little better for the use case where scrobbles were lost/missing/couldn't be found in last.fm.