Skip to content

Conversation

@FoxxMD
Copy link
Owner

@FoxxMD FoxxMD commented Sep 25, 2025

Checklist before requesting a review

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Describe your changes

Issue number and link, if applicable

@FoxxMD FoxxMD linked an issue Sep 25, 2025 that may be closed by this pull request
8 tasks
@FoxxMD
Copy link
Owner Author

FoxxMD commented Nov 20, 2025

{
    "playTransform": {
        "preCompare": {
            // when "type" is not defined, assumes should be "user"
            // which is backwards compatibile with current modification config
            "artists": [
                "replaceme",
                {
                    "search": "findthis",
                    "replace": "withthis"
                }
            ]
        }
    }
}
{
    "playTransform": {
        "preCompare": [
            {
                // when type is defined as metadata (non-user)
                // parts can be either 
                // * boolean (replace with/do not replace with)
                // * or object with "when" condition to determine if replace should happen
                // * or undefined
                //
                // if part is undefined then assumed value is 'true' to replace with
                "type": "listenbrainz",
                // will have a default
                "score": 99
            },
            {
                "type": "spotify",
                "score": 80, // only trigger replacements if whole track is 80% match
                // only replace title if *unmodified* title contains "album version"
                "title": {
                    "when": {
                        "title": "album version"
                    }
                },
               // don't replace artists
               "artists": false
              // always replace album
            }
        ]
    }
}

@FoxxMD FoxxMD marked this pull request as ready for review November 20, 2025 19:13
@FoxxMD FoxxMD added the safe to test trusted to build image label Nov 20, 2025
@github-actions
Copy link
Contributor

📦 A new release has been made for this pull request.

To play around with this PR, pull an image:

  • foxxmd/multi-scrobbler:pr-366

Images are available for x86_64 and ARM64.

Latest commit: dc5fab6

@FoxxMD FoxxMD merged commit 0c04e7b into master Nov 20, 2025
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test trusted to build image

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: Migrate Play Transform to a pipeline structure

2 participants