Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about field mappings #48

Open
kcoure opened this issue Oct 16, 2023 · 1 comment
Open

Question about field mappings #48

kcoure opened this issue Oct 16, 2023 · 1 comment

Comments

@kcoure
Copy link

kcoure commented Oct 16, 2023

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!

@gix
Copy link
Owner

gix commented Oct 16, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants