How adding season number to folder name (folder include)

Any questions? Need some help?
Post Reply
xiaobaitu2005
Posts: 11
Joined: 25 Feb 2022, 13:21

How adding season number to folder name (folder include)

Post by xiaobaitu2005 »

How adding season number to folder name (folder include)?

as: If the tv folder include S01 S03,

rename as:

Code: Select all

eigangery 2007 (S01,S03)/season 01/
......

Code: Select all

eigangery 2007 (S01,S03)/season 03/
please guide me and give me code

Thank you
xiaobaitu2005
Posts: 11
Joined: 25 Feb 2022, 13:21

Re: How adding season number to folder name (folder include)

Post by xiaobaitu2005 »

and my eiganery folder only have S01 S03 tow season
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How adding season number to folder name (folder include)

Post by rednoah »

Sorry, I don't understand the problem. Can you paste a screenshot of what you see when you're stuck?
viewtopic.php?t=1868


:idea: Note that FileBot can only rename episode files / episode folders, but not season folders.



EDIT:

Perhaps [DOCS] Holistic formats with the {model} binding is kind of what you're looking for?

Code: Select all

{ model.s.joiningDistinct(',', '(', ')') }
:idea: Please read the FAQ and How to Request Help.
xiaobaitu2005
Posts: 11
Joined: 25 Feb 2022, 13:21

Re: How adding season number to folder name (folder include)

Post by xiaobaitu2005 »

{ model.s.joiningDistinct(',', '(', ')') }
Thank you,it is.
xiaobaitu2005
Posts: 11
Joined: 25 Feb 2022, 13:21

Re: How adding season number to folder name (folder include)

Post by xiaobaitu2005 »

But how can such as (s01,s02,s03)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How adding season number to folder name (folder include)

Post by rednoah »

e.g.

Code: Select all

{ model.s.collect{ 'S' + it.pad(2) }.joiningDistinct(',', '(', ')') }
:idea: Please read the FAQ and How to Request Help.
xiaobaitu2005
Posts: 11
Joined: 25 Feb 2022, 13:21

Re: How adding season number to folder name (folder include)

Post by xiaobaitu2005 »

Thanks, love you so match.
Post Reply