Page 1 of 1

Two Formats, One Cup

Posted: 13 Sep 2018, 00:28
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

Re: Two Formats, One Cup

Posted: 13 Sep 2018, 13:39
by kim
How can Filebot know the difference ?
samples ?

Re: Two Formats, One Cup

Posted: 14 Sep 2018, 05:50
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}