[SNIPPET] Format Expressions for Music Files

All about user-defined episode / movie / file name format expressions
Post Reply
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

[SNIPPET] Format Expressions for Music Files

Post 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 } }
:idea: Please read the FAQ and How to Request Help.
Post Reply