Page 1 of 1

Multi-Episode Naming Scheme

Posted: 24 Sep 2016, 21:04
by MarFilot
Can someone show me the expression that I should use to get episode like this:

Touched by an Angel - S09E21 - I Will Walk With You (1)
Touched by an Angel - S09E22 - I Will Walk With You (2)

I use the default scheme in Filebot, but the 1 and 2 at the end is missing in the application, while it's present on TVDB

Re: Multi-Episode Naming Scheme

Posted: 25 Sep 2016, 09:22
by drauku
This code works (I tested it in the GUI and properly appends the episode part number), but I'm sure rednoah has a more elegant solution:

Code: Select all

{n} - {s00e00} - {t} {' ('+episode.toString().match(/\([0-9]+\)$/)[1]+')'}
(thanks to @Crankrune for the episode part portion)

Note, we are discussing this issue on this topic:
viewtopic.php?f=5&t=4068

Re: Multi-Episode Naming Scheme

Posted: 25 Sep 2016, 09:56
by rednoah
or just:

Code: Select all

{n} - {s00e00} - {episode.title}

Re: Multi-Episode Naming Scheme

Posted: 25 Sep 2016, 11:01
by MarFilot
Thanks a lot guys!

@drauku, I was searching the forum like crazy, but didn't see that topic. I searched for a similar keywords to my topic title, so I wouldn't have found that thread.

Re: Multi-Episode Naming Scheme

Posted: 28 Sep 2016, 03:59
by drauku
MarFilot wrote:Thanks a lot guys!

@drauku, I was searching the forum like crazy, but didn't see that topic. I searched for a similar keywords to my topic title, so I wouldn't have found that thread.
That's why we help each other out! Nobody can search for all the possible ways to do something when it comes to coding. I'm a horrible beginner, so point me in the right direction when you see it is needed!

Re: Multi-Episode Naming Scheme

Posted: 20 Oct 2016, 08:12
by Sevaus
I need rename some video files wich containing two episodes together. like this:
Dragon Ball 1x10x11 Title episode10 & Title episode11

Sorry for my poor english, thank!

Re: Multi-Episode Naming Scheme

Posted: 20 Oct 2016, 11:37
by rednoah
Thanks for the post! Before a real human comes by, please make sure your report has all the following points checked:
  • What are you trying to do achieve? What's not working? What have you tried so far?
  • Include screenshots, logs or filenames (i.e. demonstrate the issue)
  • Include basic information (i.e. sysinfo output)
:idea: Please read How to Request Help and Fix Problems, Report Bugs, Get Features

Re: Multi-Episode Naming Scheme

Posted: 20 Oct 2016, 23:54
by DavidRTurner
Sevaus wrote:I need rename some video files wich containing two episodes together. like this:
Dragon Ball 1x10x11 Title episode10 & Title episode11

Sorry for my poor english, thank!
Read through the forums like this one (viewtopic.php?f=5&t=2) to see examples of formatting.

Code: Select all

{n} - {s00e00} - {t}
is simple, and will give you NAME - SEASON#EPISODE#X-Y - SHOW TITLE

So if your file is named "dragonball z 110-111", it becomes "Dragon Ball Z - S01E10-E11 - A New Friend & Terror on Arlia"

Re: Multi-Episode Naming Scheme

Posted: 21 Oct 2016, 06:10
by rednoah
Binding {s00e00} and {sxe} support multi-episode data, but depending on the filename FileBot may or may not be able to interpret the filename as multi-episode in the first place (that's why you should post the filename so I can try this myself).