Multi Episode Files Issue

Any questions? Need some help?
Post Reply
DasBeast
Posts: 10
Joined: 28 Mar 2015, 09:33

Multi Episode Files Issue

Post by DasBeast »

I recently ran into an issue when trying to rename files that contained two episodes.

i used to be able to do it and it would work perfectly but i lost that script.

it used to work like this

it would rename
Star vs. The Forces of Evil Season 2 Episode 17-18
to
[2016-09-26] Star vs. the Forces of Evil - S02E17-E18 - Sleepover & Gift of the Card [720p] [AAC]

but now its only picking up the first episode (Episode 17)

the format im using to rename is

Code: Select all

{n.sortName('$2, $1')}/{episode.special ? 'Special' : 'Season '+s}/[{airdate}] {n} - S{s.pad(2)}E{es*.pad(2).join('-E')} - {episode.title} [{vf}] [{ac}]
what am i doing wrong?
User avatar
rednoah
The Source
Posts: 23925
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Multi Episode Files Issue

Post by rednoah »

If you have multi-part episodes then they need to be reasonably well named. Fuzzy logic used for catching arbitrary number patterns can't catch multi-part episode numbers.

This works (and always has):

Code: Select all

S02E17-18
This doesn't work (and never has):

Code: Select all

Season 2 Episode 17-18
I'll try to add support for this multi-episode pattern for the next release.
:idea: Please read the FAQ and How to Request Help.
DasBeast
Posts: 10
Joined: 28 Mar 2015, 09:33

Re: Multi Episode Files Issue

Post by DasBeast »

rednoah wrote:If you have multi-part episodes then they need to be reasonably well named. Fuzzy logic used for catching arbitrary number patterns can't catch multi-part episode numbers.

This works (and always has):

Code: Select all

S02E17-18
This doesn't work (and never has):

Code: Select all

Season 2 Episode 17-18
I'll try to add support for this multi-episode pattern for the next release.
i tried renaming it in that fashion but its still only picking up the first episode.

is there something wrong with the code im using?
User avatar
rednoah
The Source
Posts: 23925
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Multi Episode Files Issue

Post by rednoah »

Use {s00e00} to make sure that FileBot has matched the file to multiple episodes.
:idea: Please read the FAQ and How to Request Help.
DasBeast
Posts: 10
Joined: 28 Mar 2015, 09:33

Re: Multi Episode Files Issue

Post by DasBeast »

rednoah wrote:Use {s00e00} to make sure that FileBot has matched the file to multiple episodes.

I tried using a different episode to make sure it wasn't an issue with just this show, but i was still unable to get it to work.
i tried a couple different naming schemes. (the show i tried was one i had renamed in the past and it worked back than)

i tried
Star vs. the Forces of Evil S01E01-E02
with

Code: Select all

{n} - {s00e00} - {t}
and got
Star vs. the Forces of Evil - S01E01-E02 - Star Comes to Earth & Party With a Pony & Match Maker & School Spirit
(it gave me four episodes instead of just the two)

I than tried the format ive been using for awhile

Code: Select all

{n.sortName('$2, $1')} ({y})/{episode.special ? 'Specials' : 'Season '+s}/[{airdate}] {n} - S{s.pad(2)}E{es*.pad(2).join('-E')} - {episode.title} [{vf}] [{ac}]
on
Star vs. the Forces of Evil S01E01-E02
and got
[2015-01-18] Star vs. the Forces of Evil - S01E01-E01-E02-E02 - Star Comes to Earth [1080p] [AAC]

what ever code i was using before gave me the right output but i don't know what it was
i put that same episode in awhile back and it gave me this
[2015-01-18] Star vs. the Forces of Evil - S01E01-E02 - Star Comes to Earth & Party With a Pony [1080p] [AAC]

which works perfectly for me.
User avatar
rednoah
The Source
Posts: 23925
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Multi Episode Files Issue

Post by rednoah »

FileBot works:

Code: Select all

$ filebot -rename . --action test
Rename episodes using [TheTVDB]
Auto-detected query: [Star vs the Forces of Evil]
Fetching episode data for [Star vs. the Forces of Evil]
[TEST] Rename [Star vs. the Forces of Evil S01E01-E02.mp4] to [Star vs. the Forces of Evil - 1x01 & 1x02 - Star Comes to Earth & Party With a Pony.mp4]
Your format works:

Code: Select all

$ filebot -rename . --action test --format "{n.sortName('$2, $1')} ({y})/{episode.special ? 'Specials' : 'Season '+s}/[{airdate}] {n} - S{s.pad(2)}E{es*.pad(2).join('-E')} - {episode.title} [{vf}] [{ac}]"
Rename episodes using [TheTVDB]
Auto-detected query: [Star vs the Forces of Evil]
Fetching episode data for [Star vs. the Forces of Evil]
[TEST] Rename [Star vs. the Forces of Evil S01E01-E02.mp4] to [Star vs. the Forces of Evil (2015)/Season 1/[2015-01-18] Star vs. the Forces of Evil - S01E01-E02 - Star Comes to Earth [] [].mp4]
:idea: Now that we have confirmed that it's a neither an inherent FileBot problem nor a problem with your format, you can move on to figuring out what's different in your specific case. Be smart and use trial and error to narrow down the problem.


EDIT:


So I've played around a little bit, and it turns out that you're HIDING THE FACT THAT YOU'RE USING DVD ORDER which explain why I'm wasting my time trying to figure out what's going on testing with Airdate Order.

According to DVD Order, there are in fact Episode 1.1 and Episode 1.2 that make up Episode 1.
DasBeast wrote:I tried using a different episode to make sure it wasn't an issue with just this show
You have clearly NOT tested with other shows which would tell you that it works for everything but "Star vs. the Forces of Evil". You have NOT tested with "Star vs. the Forces of Evil S01E01" which would have told you that "Episode 1" has two titles.

Either of those peculiarities should have lead you to double-check what TheTVDB data says:
Image
:idea: Please read the FAQ and How to Request Help.
Post Reply