Two Formats, One Cup

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

Two Formats, One Cup

Post by DarfNader » 13 Sep 2018, 00:28

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: 565
Joined: 15 May 2014, 16:17

Re: Two Formats, One Cup

Post by kim » 13 Sep 2018, 13:39

How can Filebot know the difference ?
samples ?

User avatar
rednoah
The Source
Posts: 14114
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Two Formats, One Cup

Post by rednoah » 14 Sep 2018, 05:50

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

Who is online

Users browsing this forum: No registered users and 0 guests