Page 1 of 1
How adding season number to folder name (folder include)
Posted: 05 Oct 2022, 22:21
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
Re: How adding season number to folder name (folder include)
Posted: 05 Oct 2022, 22:26
by xiaobaitu2005
and my eiganery folder only have S01 S03 tow season
Re: How adding season number to folder name (folder include)
Posted: 06 Oct 2022, 05:52
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

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(',', '(', ')') }
Re: How adding season number to folder name (folder include)
Posted: 08 Oct 2022, 15:52
by xiaobaitu2005
{ model.s.joiningDistinct(',', '(', ')') }
Thank you,it is.
Re: How adding season number to folder name (folder include)
Posted: 08 Oct 2022, 15:54
by xiaobaitu2005
But how can such as (s01,s02,s03)
Re: How adding season number to folder name (folder include)
Posted: 08 Oct 2022, 16:05
by rednoah
e.g.
Code: Select all
{ model.s.collect{ 'S' + it.pad(2) }.joiningDistinct(',', '(', ')') }
Re: How adding season number to folder name (folder include)
Posted: 08 Oct 2022, 18:23
by xiaobaitu2005
Thanks, love you so match.