Two Formats, One Cup

All about user-defined episode / movie / file name format expressions
Post Reply
DarfNader
Posts: 48
Joined: 08 Apr 2018, 12:46

Two Formats, One Cup

Post by DarfNader »

I manage two different formats that I use for episodes in my Plex library. Because I am a lazy sack and since Señor Filebot is downright prescient, this has always been just fine for run-of-the-mill TV and streaming:

Code: Select all

/Volumes/Plex/Plex Media Server/Plex Media/TV Shows/{Plex}
Then I started to realize that I didn't want my chocolate with my peanut butter, or rather I wanted independently produced neckbeard programming separated from standard-fare produced episodic entertainment. Plus, since I like the names in podcast-style format where the guest and date are title, I use:

Code: Select all

/Volumes/Plex/Plex Media Server/Plex Media/Intertubes/{n} [{airdate.format('yyyy.MM.dd')}] {t}
I presently deal with this by switching between presets bit it feels like I am using a hammer to fix a pancreas, so would be grateful for someone to smear some knowledge on my face if there is a more graceful and/or automated way to do this.

Thanks
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: Two Formats, One Cup

Post by kim »

How can Filebot know the difference ?
samples ?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Two Formats, One Cup

Post by rednoah »

Seems like a simple case of if (condition) then FormatA else FormatB. What is your condition for deciding between A and B?

e.g. check if original file path contains "Intertubes" and the process accordingly:

Code: Select all

/Volumes/Plex/Plex Media Server/Plex Media/{f =~ /Intertubes/ ? "Intertubes/${n} [${airdate.format('yyyy.MM.dd')}] ${t}" : plex}
:idea: Please read the FAQ and How to Request Help.
Post Reply