foo_scrobble icon indicating copy to clipboard operation
foo_scrobble copied to clipboard

Question about field mappings

Open moschidale opened this issue 2 years ago • 1 comments

Sorry if this is in the wrong section. Just wasn't sure where else to ask about it.

There is a Field mappings section in the plugin. Can you tell me if it's possible to make the plugin ignore album versions specified in brackets?

For example, I have Example (Stereo) and Example (Mono) album versions; Is it possible to make it so that only Imagine is sent to LastFM? (Versions are always in brackets).

Thanks a lot for your help and the great plugin!

moschidale avatar Oct 16 '23 12:10 moschidale

If I understand correctly, you have the same album twice: one has Album Title "Imagine (Stereo)", and the other has Album Title "Imagine (Mono)". Correct?

You have several options here, which can also be combined:

  1. Never scrobble any tracks from the album. Set the "Skip format" to exclude tracks with an Album Title ending with (Mono):

    $if($strcmp($right(%album%,6),'(Mono)'),1,)
    
  2. Strip (Mono) from the Album Title. Set the Album field mapping from [%album%] to:

    $if($strcmp($right(%album%,7),' (Mono)'),$left(%album%,$sub($len(%album%),7)),%album%)
    

    This could be extended to strip both "(Mono)" and "(Stereo)".

It's not clear which one (or both) you want.

Alternatively, if those albums are cataloged at MusicBrainz you can add the MusicBrainz TrackId to those tracks which should be respected by last.fm.

gix avatar Oct 16 '23 20:10 gix