Conditional use of dash and putting specials in "Season 0"

Any questions? Need some help?
Post Reply
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Conditional use of dash and putting specials in "Season 0"

Post by rednoah »

1.
This will do:

Code: Select all

{" - "+absolute}
:idea: viewtopic.php?f=5&t=1895


2.
Specials are Specials, not necessarily Season 0 episodes, but you can just of course encode them as such:

Code: Select all

{regular ? 'Season '+s : 'Season 0'}

3.
Here's what I get in Episodes panel:

Code: Select all

Firefly - Special 1 - Serenity
:?: What version of FileBot are you using?
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Conditional use of dash and putting specials in "Season 0"

Post by rednoah »

The {plex} binding will take care of the details so you don't have to worry about it:

Code: Select all

{plex}
viewtopic.php?t=4116
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Conditional use of dash and putting specials in "Season 0"

Post by rednoah »

1.
You can do:

Code: Select all

/path/to/My Series Folder Name/{plex.tail}
:idea: viewtopic.php?t=4116


2. & 3.
Probably fine. Your choice. But definitely not what naming and organizing your media files prescribes.


4.
I'd start with this, more or less the same as what {plex} does, and then you modify things to your liking:

Code: Select all

TV Shows/{n}/{episode.special ? 'Specials' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replaceAll(/[`´‘’ʻ]/, /'/).replaceAll(/[!?.]+$/).replacePart(', Part $1')}{'.'+lang}
:idea: viewtopic.php?t=4116
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Conditional use of dash and putting specials in "Season 0"

Post by rednoah »

{plex} and {s00e00} are aware of multi-episode objects and change their behavior accordingly, but multi-episode aware custom formats are slightly more tricky.

The {episodes} binding gives you the multi-episode object as list of episodes, so you can do this:

Code: Select all

{episodes.absolute.join('-')}

Code: Select all

1-2-3
or this:

Code: Select all

{episodes.absolute.min() + '-' + episodes.absolute.max()}

Code: Select all

1-3
:idea: Please read the FAQ and How to Request Help.
Post Reply