Help with adding season year to folder name

Any questions? Need some help?
Post Reply
ga8orfan13
Posts: 1
Joined: 02 Jul 2012, 15:03

Help with adding season year to folder name

Post by ga8orfan13 »

I am trying to find a good way to define location/filename in the following manner. I am having difficulty adding the season year when the episodes span multiple years.

Example:
- I have Season 1 and 2 of CHiPs
- I would like to have the files named like this...
\TV Shows\CHiPs\Season 01 (1977-1978)\S01E01.Pilot (1977-09-15).avi
.
.
.
\TV Shows\CHiPs\Season 01 (1977-1978)\S01E13.One Two Many (1978-01-05).avi

If the season spans only one year, then I can use an expression like this and it will work.
\TV Shows\{n}\Season {s.pad(2)} ({airdate.year})\{S00E00}.{t} ({airdate})

Not sure how to solve my issue with representing the season year when the season spans multiple years.

Any suggestions?

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

Re: Help with adding season year to folder name

Post by rednoah »

That came up sometime ago. There is a solution using the {episodelist} (?) binding somewhere here in this forum.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 19349
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help with adding season year to folder name

Post by rednoah »

Here is the original thread:
http://filebot.sourceforge.net/forums/v ... p?f=4&t=58

This expression will get you the season year(s):

Code: Select all

{episodelist.findAll{it.season == s}.airdate.year[0,-1].unique().join('-')}
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 19349
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help with adding season year to folder name

Post by rednoah »

FileBot r4096 introduces the season years {sy} binding.
:idea: Please read the FAQ and How to Request Help.
Post Reply