Page 1 of 1

[SNIPPET] Format Expressions for Music Files

Posted: 23 Sep 2024, 03:18
by rednoah

Organize Music for Plex

{plex} format works for Music Files as well. If you regularly Organize Music for Plex then you will want to create a Preset for easy access:

Format: Select all

{ plex }
Screenshot



Remove (feat. XYZ)

Remove (feat. XYZ) from the {t} track title:

Format: Select all

{ t.removeAll(/ \(feat\. (.+?)\)/) }
Remove (feat. XYZ) from the {t} track title if the {artist} list of artist names already lists XYZ:

Format: Select all

{ t.replaceAll(/ \(feat\. (.+?)\)/){ match, feat -> artist.contains(feat) ? '' : match } }