Special Episode with Filebot-Node

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
Predator2912
Posts: 47
Joined: 20 May 2017, 17:51

Special Episode with Filebot-Node

Post by Predator2912 » 09 Mar 2019, 22:28

Hello Guys,

I've been using the Filebot node on my NAS for a while and that works great too.

But now I would like to extend my script or better the task i used so that "Speciale episodes" are recognized and automatically load in the Season folder and in a subfolder with the name "Specials".

How do I have to change the line for this?

Code: Select all

{ny}/Season {s.pad(2)}/{ny} - {'S'+s.pad(2)}E{e.pad(2)} - {t}_[{group+'-'}{resolution}p]_[{vf}_{vc}_{source}_{af}]
For Example:
Doctor.Who.2005.S07S02.Weihnachtsspecial.2012.Die.Schneemaenner

becomes:
Doctors (2000)/Season 11/Doctors (2000) - S11E141 - Doctor Who

and I would like to have this:
Doctor Who (2005)/Season 07/Specials/Doctor Who - S02 - Weihnachtsspecial 2012 - Die Schneemaenner

or something like this:
Doctor Who (2005)/Season 07/Specials/Doctor Who - S07S02 - Weihnachtsspecial 2012 - Die Schneemaenner

or another Example:
Doctor.Who.2005.S04_S05.Weihnachtsspecial.Das.Ende.der.Zeit.Teil.2

becomes:
Doctor Who (2005)/Season/Doctor Who (2005) - E - Das Ende der Zeit (2)


I found in the Forum this:

Code: Select all

{ any{"Season $s $sy"}{'Specials'} }

Code: Select all

{'/'+any{"Season ${s.pad(2)}"}{'Season 00'}}

But i didn't know how to use this correctly.
So can you Help me please.


Best regards from Germany

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

Re: Special Episode with Filebot-Node

Post by kim » 10 Mar 2019, 02:48

something like this ?

Code: Select all

{ny}{'/'+any{"Season ${s.pad(2)}"}{'Specials'}}/{ny}{' - '+s00e00}{' - '+t}
=

Code: Select all

Doctor Who (2005)/Specials/Doctor Who (2005) - S00E141 - Doctor Who Extra: Death in Heaven

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

Re: Special Episode with Filebot-Node

Post by rednoah » 10 Mar 2019, 06:17

Adding this will do:

Code: Select all

{special; 'Specials/'}
{special} will unwind for non-special episodes so you'll either be adding Specials/ to the path or nothing at all.


e.g.

Code: Select all

{ny}/Season {s.pad(2)}/{special; 'Specials/'}{ny} - {s00e00} - {t}_[{group+'-'}{resolution}p]_[{vf}_{vc}_{source}_{af}]
:idea: Please read the FAQ and How to Request Help.

Post Reply