Page 1 of 1

Couple of questions about current scheme

Posted: 08 Dec 2015, 06:00
by g4m3r7ag
Currently I have two different scheme's I'm using for TV Shows. One for regular episodes and one for specials. Is there a way to combine these so I don't have to constantly switch back and forth?

Currently if the one for regular episodes tries to match a special it makes the season folder "Season 00" and the episode number matches as S00Enull. If I'm using the specials scheme and try to match a regular episode it doesn't pad the season folder with a 0 so I end up with "Season 1" instead of "Season 01"

Code: Select all

Sorted/{n}/Season {s.pad(2)}/{n} - S{s.pad(2)}E{es*.pad(2).join('-E')} - {t} - {vf} {af}

Sorted/{n}/{episode.special ? 'Special' : 'Season '+s}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t} - {vf} {af}

Also I am having some trouble with multi-part episodes. My regular episode scheme above matches two part episodes just fine but anything more than two parts it will only match the first two parts.

Example:

S01E22-E23 will match correctly

S01E24-E25-E26-E27 will only match E24 and E25 and completely skips E26 and E27.

Re: Couple of questions about current scheme

Posted: 08 Dec 2015, 06:19
by rednoah
1.
Your first scheme doesn't support specials at all, so why would you ever use that?

Code: Select all

Sorted/{n}/Season {s.pad(2)}/{n} - S{s.pad(2)}E{es*.pad(2).join('-E')} - {t} - {vf} {af}
Your second scheme is superior in every aspect, so you'd only ever use that:

Code: Select all

Sorted/{n}/{episode.special ? 'Special' : 'Season '+s}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t} - {vf} {af}
So the main issue is that the second one doesn't give you "Season 01" but "Season 1" folders? The first format already shows you how to do that.

Compare and contrast:

Code: Select all

{episode.special ? 'Special' : 'Season '+s}

Code: Select all

{episode.special ? 'Special' : 'Season '+s.pad(2)}
I'm sure you can figure why one formats pads the season number, and why the other doesn't. Stare at it until it makes sense. ;)


2.
Are you sure that E26 and E27 of whatever show actually exist? If something doesn't work, I will ALWAYS need the filename of the file that doesn't match correctly.

Re: Couple of questions about current scheme

Posted: 08 Dec 2015, 07:04
by g4m3r7ag
Now I feel slow, I was trying 'Season s.pad(2) '+s}.... That makes perfect sense now.

Here are the filenames I'm having trouble with.

This will match fine:

Code: Select all

Freakazoid! - S01E22-E23 - Hot Rods from Heck! + A Time for Evil
This will only match the first two episodes and skip the third and fourth

Code: Select all

Freakazoid! - S01E24-E25-E26-E27 - Relax-O-Vision + Fatman and Boy Blubber + Limbo Lock-up + Terror Palace

Re: Couple of questions about current scheme

Posted: 08 Dec 2015, 07:16
by rednoah
Works with 4.6 but somehow doesn't with 4.6.1 ... this will take a while ...

EDIT:

On the upside, this will work now: Freakazoid! - S01E24-E27

EDIT2:

Somewhat fixed with r3372

Re: Couple of questions about current scheme

Posted: 08 Dec 2015, 07:28
by g4m3r7ag
No worries, FileBot has made my life much easier over the last year so I have no problem waiting.

Edit: Your edit was right as I was replying. It's getting late here, I will try that out tomorrow and report back. Thank you for the help.

Re: Couple of questions about current scheme

Posted: 09 Dec 2015, 06:41
by g4m3r7ag
Worked perfectly with r3372 thank you.

Re: Couple of questions about current scheme

Posted: 18 Dec 2015, 05:54
by g4m3r7ag
New problem now, I'm trying to get the statement that supports Specials to also support Joining episodes.

This is the base statement I'm working off

Code: Select all

/Volumes/Data/New Downloads/TV Shows/Sorted/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t} - {vf} {af}
I have tried

Code: Select all

/Volumes/Data/New Downloads/TV Shows/Sorted/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : S{s.pad(2)}E{es*.pad(2).join('-E')}} - {t} - {vf} {af}
and

Code: Select all

/Volumes/Data/New Downloads/TV Shows/Sorted/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : S+s.pad(2)E+es*.pad(2).join('-E')} - {t} - {vf} {af}
With both I get Expecting EOF found 'E'

I have also tried

Code: Select all

/Volumes/Data/New Downloads/TV Shows/Sorted/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00.join('-E')} - {t} - {vf} {af}
I don't get an error but it doesn't join episodes.

Is it possible for this statement to support joining episodes?

Re: Couple of questions about current scheme

Posted: 18 Dec 2015, 07:51
by rednoah
{s00e00} supports multi-episode formatting. {es} is a list of episode numbers, so {es.join('-')} will yield things like 1-2-3 but if {es} is just one episode, then won't be anything to join.

What's the problem? FileBot not detecting multi-episodes correctly? Nothing you can do about that in the format.

Re: Couple of questions about current scheme

Posted: 19 Dec 2015, 03:37
by g4m3r7ag
This is the filename I'm trying to rename but the specials scheme I listed that I'm using only match's to S00E04 and doesn't join it

Code: Select all

BSG.Razor.S00E04-E05Extended.2007.720p.Brrip + C
It's listed as S00E04 and S00E05 here

http://thetvdb.com/?tab=season&seriesid ... 5950&lid=7

Re: Couple of questions about current scheme

Posted: 19 Dec 2015, 06:42
by rednoah
You'll need a separator before/after the SxE pattern.

No

Code: Select all

S00E04-E05Extended
YES

Code: Select all

S00E04-E05.Extended
EDIT:

Oddly enough, it seems to just work with the latest revision:

Code: Select all

Group: [tvs:battlestar galactica] => [BSG.Razor.S00E04-E05Extended.2007.720p.Brrip + C.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Battlestar Galactica, BSG, BSG Razor]
Fetching episode data for [Battlestar Galactica]
Fetching episode data for [Battlestar Galactica (2003)]
Fetching episode data for [Battlestar Galactica: Blood & Chrome]
[TEST] Rename [BSG.Razor.S00E04-E05Extended.2007.720p.Brrip + C.mkv] to [TV Shows/Battlestar Galactica (2003)/Special/Battlestar Galactica (2003) - S00E04-E05 - Razor.mkv]
Processed 1 files

Re: Couple of questions about current scheme

Posted: 20 Dec 2015, 07:14
by g4m3r7ag
I put the separator in and updated from 3372 to 3399 and it still won't join, it just tries to rename as S00E04 instead of S00E04-E05. What scheme should I be using to support joining with specials?

Re: Couple of questions about current scheme

Posted: 20 Dec 2015, 08:13
by rednoah
The naming scheme can't correct multi-episode matching issues. If {s00e00} doesn't work, then there's nothing you can do in the format to fix it, because the information isn't there in the first place.

What's the value of {s00e00} or {es}? What's the full path of the original filename? If you want to correct a bad match you may need to clear xattr metadata first.