Skip to content

Instantly share code, notes, and snippets.

@gravelld
Created December 2, 2016 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gravelld/80e6ea3cc8ac6ae1b08e15366cb11953 to your computer and use it in GitHub Desktop.
Save gravelld/80e6ea3cc8ac6ae1b08e15366cb11953 to your computer and use it in GitHub Desktop.
Regex rule to remove strings from the end of fields
# Rule to remove annoying pirate juice inserts in the tags downloaded
rule removePirateJuice with label "Remove MP3PirateJuice tags" has alternatives
REMOVE {
find /^(.*) - \[MP3PIRATEJUICE.COM\]$/ replace with "$1"
}
applies to artist, album_name, genre, track_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment