How to add numbers to episode number?

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
waltberkman
Posts: 1
Joined: 23 Oct 2018, 15:53

How to add numbers to episode number?

Post by waltberkman »

Sorry if this is simple and I should be able to figure it out, but I don't really know enough programming to figure this out. I'm trying to add 7 to all my episode numbers. I currently have Arrested Development Remix listed as e01-e22, but theTVDB lists them as e08-e29.

How can I get it to add 7 so I don't have to rename them manually? I've played around with sum and can't get the syntax right, mainly because I have no idea what I'm doing.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: How to add numbers to episode number?

Post by kim »

Code: Select all

{def epOffset = 7; 's'+s.pad(2)+'e'+(e+epOffset).pad(2) }
BUT
Using TVDB you need to rename using "Specials":
https://www.thetvdb.com/series/arrested ... /seasons/0
https://www.thetvdb.com/series/arrested ... es/6691221
e.g.
Arrested Development - S00E08 - Season 4 Remix: Re Cap'n Bluth
So better to use GUI ("Episodes") to manual match and rename the files
https://www.youtube.com/watch?v=btNSv7AnMMw
https://www.youtube.com/watch?v=P7tas1ceKG0
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to add numbers to episode number?

Post by rednoah »

What kim said. Note that in Episode panel, you can multi-select the episodes you want, and then CTRL+C / CTRL+V copy & paste them into New Names. That way you can easily select the right sequence of episodes, and they'll align with your files right away after paste.
:idea: Please read the FAQ and How to Request Help.
Post Reply