01x35-01x36 Multi-Episode Naming

All about user-defined episode / movie / file name format expressions
Post Reply
in10se
Posts: 18
Joined: 16 Nov 2018, 07:53

01x35-01x36 Multi-Episode Naming

Post by in10se »

hey guys, I am a proud paying member of Filebot!

i love this tool and use it for years now. Thank you guys so much for your effort and work!

this is my code for episodes:

Code: Select all

//q:/Renaming and Tagging/C-S/ENG/{n.replaceAll(/:/, " -").replaceAll(/ü/, "ue").replaceAll(/Ö/, "Oe").replaceAll(/Ü/, "Ue").replaceAll(/Ä/, "Ae").replaceAll(/ä/, "ae").replaceAll(/ö/, "oe").replaceAll(/[`´‘’ʻ]/, "'").replaceAll(/[!?.]+$/, "")}/Season {s.pad(2)} (Eng)/{n.replaceAll(/:/, " -").replaceAll(/ü/, "ue").replaceAll(/ä/, "ae").replaceAll(/ö/, "oe").replaceAll(/Ö/, "Oe").replaceAll(/Ü/, "Ue").replaceAll(/Ä/, "Ae").replaceAll(/[`´‘’ʻ]/, "'").replaceAll(/[!?.]+$/, "")} - {s.pad(2)}x{es*.pad(2).join('-').replaceAll("null", {episode.special ? 'Special '+special.pad(2):''})} - {t.replaceAll(/[`´‘’ʻ]/, "'").replaceAll(/ü/, "ue").replaceAll(/ä/, "ae").replaceAll(/Ö/, "Oe").replaceAll(/Ü/, "Ue").replaceAll(/Ä/, "Ae").replaceAll(/ö/, "oe").replaceAll(/[!?.]+$/, "").replaceAll(/:/, " -")} [{airdate}] ({vc}) ({ac}) ({vf})
with multi-episodes it will look like that:

Hey Arnold - 01x35-36 - Magic Show & 24 Hours To Live [1997-02-03] (XviD) (MP3) (480p)

but I want it to look like that:

Hey Arnold - 01x35-01x36 - Magic Show & 24 Hours To Live [1997-02-03] (XviD) (MP3) (480p)


so instead of "01x35-36" it shall do "01x35-01x36". Can someone help me with the change of the code? I am so bad at it!

Thank you so much!
User avatar
rednoah
The Source
Posts: 24652
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Multi-Episode Naming

Post by rednoah »

This will give you a 01x01 value for each episode object that is part of the multi-episode object currently being formatted:

Code: Select all

{episodes.collect{ [it.season, it.episode]*.pad(2).join('x') }.join('-')}
:idea: Please read the FAQ and How to Request Help.
in10se
Posts: 18
Joined: 16 Nov 2018, 07:53

Re: 01x35-01x36 Multi-Episode Naming

Post by in10se »

thank you so much rednoah for your answer! Shall I put this code at the beginning or at the end, or do I need to replace it with one part?
in10se
Posts: 18
Joined: 16 Nov 2018, 07:53

Re: 01x35-01x36 Multi-Episode Naming

Post by in10se »

I tried to replace it or implement it, but it says "syntax error". i know the problem sits in front of the pc, but I am so unfamiliar with those codes. How can I implement your code into mine above?
User avatar
rednoah
The Source
Posts: 24652
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 01x35-01x36 Multi-Episode Naming

Post by rednoah »

Your code is complex and unreadable. My tip is to separate each {expression} into it's own line, so you can easily add a {expression} somewhere, without having to look or modify any of the other {expression} parts that make up your format.

e.g.

Code: Select all

{n}
 - {episodes.collect{ [it.season, it.episode]*.pad(2).join('x') }.join('-')}
 - {t}
[{airdate}]
({vc})
({ac})
({vf})
:idea: Please read the FAQ and How to Request Help.
in10se
Posts: 18
Joined: 16 Nov 2018, 07:53

Re: 01x35-01x36 Multi-Episode Naming

Post by in10se »

ok, thanks, thats a nice tipp! will check for it
in10se
Posts: 18
Joined: 16 Nov 2018, 07:53

Re: 01x35-01x36 Multi-Episode Naming

Post by in10se »

this code

Code: Select all

{n.replaceAll(/:/, " -").replaceAll(/ü/, "ue").replaceAll(/Ö/, "Oe").replaceAll(/Ü/, "Ue").replaceAll(/Ä/, "Ae").replaceAll(/ä/, "ae").replaceAll(/ö/, "oe").replaceAll(/[`´‘’ʻ]/, "'").replaceAll(/[!?.]+$/, "")}
makes it so long and complex. It just does for every renaming, it changes the ü to ue, the ö to oe, the Ü to UE, the Ö to OE etc.


And this repeats in the code 3 times. Is there a way to make this shorter and easier?
in10se
Posts: 18
Joined: 16 Nov 2018, 07:53

Re: 01x35-01x36 Multi-Episode Naming

Post by in10se »

Also, how can I make, if the episode is a special, that it names it to this format:

Code: Select all

\Season 00\Hey Arnold! - 00x04 - Titlenameoftheepisode.avi
User avatar
rednoah
The Source
Posts: 24652
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 01x35-01x36 Multi-Episode Naming

Post by rednoah »

1.
You could use n.ascii() to deal with the Umlauts but that might not give you the replacements you want.

Code: Select all

n.ascii()
:idea: You could also just not do this. Modern computers have generally no problem with Unicode characters.


2.
You could check if it's a special, and then do different things accordingly:

Code: Select all

regular ? episodes.collect{ [it.season, it.episode]*.pad(2).join('x') }.join('-') : '00x'+e.pad(2)
:idea: Please read the FAQ and How to Request Help.
in10se
Posts: 18
Joined: 16 Nov 2018, 07:53

Re: 01x35-01x36 Multi-Episode Naming

Post by in10se »

thank you for your help rednoah, I will try it out, still running into a lot of problems with it. I am just not experienced in it. I will read a bit into it and report again if I cant solve it.

Thank you so much!
User avatar
rednoah
The Source
Posts: 24652
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 01x35-01x36 Multi-Episode Naming

Post by rednoah »

Each and every {} expression is independent, and each expressions usually consists of code blocks that can be tested independently. Just start with small parts, test them, and then combine them into larger ones, test them, and repeat. It’s important to start small and understand the small pieces, and then build up from there. ;)
:idea: Please read the FAQ and How to Request Help.
in10se
Posts: 18
Joined: 16 Nov 2018, 07:53

Re: 01x35-01x36 Multi-Episode Naming

Post by in10se »

Hey my friend. Easier said than done for me :(. I am trying now since an hour. This is my code:

//q:/Renaming and Tagging/C-S/ENG/{n}/Season {s.pad(2)} (Eng)/{n} - {episodes.collect{ [it.season, it.episode]*.pad(2).join('e') .replaceAll("null", {episode.special ? '00'+special.pad(2):''})}.join('-s')} - {t} [{airdate}] ({vc}) ({ac}) ({vf})

it got shorter, thanks to you.

It works perfect for multiple episodes, but still has problems with specials. This is the result:

...\River Monsters - 0001e0001 - Killer Catfish - Two Hour Special...

But I want to look it like that for every special:

..\River Monsters - s00e01 - Killer Catfish...
..\River Monsters - s00e02 - another special...

what am I missing?
User avatar
rednoah
The Source
Posts: 24652
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 01x35-01x36 Multi-Episode Naming

Post by rednoah »

1.
Did you check if River Monsters - 0001e0001 - Killer Catfish - Two Hour Special is identified as special in the first place? File River Monsters - 0001e0001 - Killer Catfish - Two Hour Special.mkv gives me River Monsters - S01E02 - Killer Catfish as match.


2.
Changing the numeric pattern to something more sensible like River Monsters - S00E01 - Killer Catfish - Two Hour Special allows me to get the match we want, i.e. River Monsters - S00E01 - Killer Catfish - Two Hour Special Cut.

Now that we have the right match, we can test our format.

This works for a normal episode / multi-episode:

Code: Select all

episodes.collect{ [it.season, it.episode]*.pad(2).join('x') }.join('-')
This works for single-episode specials:

Code: Select all

'00x'+special.pad(2)
The regular or episode.special bindings allow us to check if the current episode object is a special.

Now we just combine the to with a if-then-else and here we go:

Code: Select all

regular ? episodes.collect{ [it.season, it.episode]*.pad(2).join('x') }.join('-') : '00x'+special.pad(2)
This is the Groovy code, which we must enclose in {...} if we want to use it in a format expression.

:idea: Keep in mind that the outermost {...} delimits the FileBot / Groovy expression, while any {...} inside that is just Groovy code, which means these {...} are interpreted completely differently: viewtopic.php?f=5&t=1895


3.
Lastly, I'm just gonna give you a copy & paste solution, but it's best to try to come up with this yourself, so you really grasp how things work. ;)

Code: Select all

Q:/Renaming and Tagging/C-S/ENG
/{n}
/Season {s.pad(2)} (Eng)
/{n}
 - {regular ? episodes.collect{ [it.season, it.episode]*.pad(2).join('x') }.join('-') : '00x'+special.pad(2)}
 - {t}
 [{airdate}]
 ({vc})
 ({ac})
 ({vf})
:idea: Please read the FAQ and How to Request Help.
in10se
Posts: 18
Joined: 16 Nov 2018, 07:53

Re: 01x35-01x36 Multi-Episode Naming

Post by in10se »

Damn, this code is sexy. I know its weird to say it, but It looks perfect! Thank you so much for your help.

I would like to donate a bit for your helpful explanations. Now I understood the codes! Do you still have a donation link? I already purchased my life-time, but want to give you a bit out of respect for your effort!

Thank you
in10se
Posts: 18
Joined: 16 Nov 2018, 07:53

Re: 01x35-01x36 Multi-Episode Naming

Post by in10se »

One problem I have with the code. It works for multi-episodes, but only for Season 1, With other seasons it has problems, as you can see here:

https://ibb.co/crafjf
User avatar
rednoah
The Source
Posts: 24652
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 01x35-01x36 Multi-Episode Naming

Post by rednoah »

You can always run a few tests (e.g. by pressing F7 to copy debug data) to figure out what we're dealing with.

As mentioned previously, you first need to ask yourself, is it a match problem? or a formatting problem? Since the format works for the first few episodes, it's likely the latter.

For me, File Garfield & Friends - 02x01-02x02-02x03 does get correctly matched to Multi-Episode Garfield & Friends - 2x01 & 2x02 & 2x03 - Pest of a Guest & The Impractical Joker & Fat and Furry and so the rest works as expected. Not idea why it's not working for you. Try a few simple test cases until you find a key factor that makes it not work for you.
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: 01x35-01x36 Multi-Episode Naming

Post by kim »

Only the episodes in the file name will be added, e.g. name.s01e01-03.ext will not include episode 2.
https://kodi.wiki/view/Naming_video_fil ... i-Episodes
vs
(e.g. “Heroes s04e01-e03.mkv” starts with episode 1 and ends with episode 3).
https://support.plex.tv/articles/200220 ... -tv-shows/

so.... We need a

Code: Select all

{kodi}
same with

Code: Select all

{s00e00}
and

Code: Select all

{sxe}
KODI way

Code: Select all

{
regular ? episodes.collect{ 'S'+[it.season, it.episode]*.pad(2).join('E') }.join('-') : episodes.collect{ ['S00',it.special]*.pad(2).join('E') }.join('-')
}
or

Code: Select all

{
regular ? episodes.collect{ [it.season, it.episode.pad(2)].join('x') }.join('-') : episodes.collect{ ['0', it.special.pad(2)].join('x') }.join('-')
}
User avatar
rednoah
The Source
Posts: 24652
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 01x35-01x36 Multi-Episode Naming

Post by rednoah »

I'm pretty sure that {plex} works for Kodi just as well. So you could just use {plex} and call it a day. I know the docs say otherwise, but are you sure it doesn't just work? Plenty of folks here use Kodi, and somehow it hasn't come up yet.
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: 01x35-01x36 Multi-Episode Naming

Post by kim »

I just tested with in KODI 17.6
Firefly.S01E02-E04
I can confirm it DOES NOT WORK
KODI only sees ep 2 and 4 NOT ep 3

Change file to e.g.
Firefly.S01E02-E03-E04
now KODI shows all 3

if you make plex do like KODI wants it then maybe plex can use same format, can anyone confirm this ?
User avatar
rednoah
The Source
Posts: 24652
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 01x35-01x36 Multi-Episode Naming

Post by rednoah »

I suppose it is time for a new {kodi} binding. I'll make it happen for next release.

:?: Any other notable differences between {plex} and the proposed {kodi} that I should know about?
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: 01x35-01x36 Multi-Episode Naming

Post by kim »

Don't think so, but what about, if 3+ multi episode then KODI cant use it ?

Code: Select all

{s00e00}
and

Code: Select all

{sxe}
yes, this is a corner case, but...
User avatar
rednoah
The Source
Posts: 24652
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 01x35-01x36 Multi-Episode Naming

Post by rednoah »

Pretty much, but for {s00e00} and {sxe} I'm not inclined to add addition bindings to cover this particular corner case, since in the future you'll either use {kodi} or copy & paste format code from this thread if you just want the numbers.
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: 01x35-01x36 Multi-Episode Naming

Post by kim »

Maybe a poll:

Do you want all episode numbers in the filename ?
e.g. 1x02-03-04
or
keep it like it is now and only show from-to e.g. 1x02-04
in10se
Posts: 18
Joined: 16 Nov 2018, 07:53

Re: 01x35-01x36 Multi-Episode Naming

Post by in10se »

Hi Kim,

Ok, I will check what you wrote. Still dont understand it totally, but hopefully will see through it some day.

But for me, KODI only shows all episodes if I name it exactly like that: S01E02-S01E03-S01E04

if I name it S01E01-E02-E03 "media Companion" gets it right, writes it correctly to the nfo file, but in Kodi I dont see any episode at all. Most of the times they are just in "Season -1" and not shown there.

But need to check which Kodi Version I have, since I am using a OSCM Vero4K, need to check how to update Kodi there...
in10se
Posts: 18
Joined: 16 Nov 2018, 07:53

Re: 01x35-01x36 Multi-Episode Naming

Post by in10se »

I used your Code from "Kodi" Kim, and I get same probems:

https://ibb.co/c9TZUf

something on my system or with my app doesnt work correctly.

How can I check which version of filebot I have?

In the picture they are named exactly the same way and still some it recognized and some not.

But Media Companion realized them all the same way. So I just change the name manually and Kodi an Media Companion make it right.

Dont know why it doesnt work with my filebot

Thats the code I used:

Code: Select all

Q:/Renaming and Tagging/C-S/ENG
/{n}
/Season {s.pad(2)} (Eng)
/{n}
 - {regular ? episodes.collect{ 'S'+[it.season, it.episode]*.pad(2).join('E') }.join('-') : episodes.collect{ ['S00',it.special]*.pad(2).join('E') }.join('-')
}

 - {t}
 [{airdate}]
 ({vc})
 ({ac})
 ({vf})
User avatar
rednoah
The Source
Posts: 24652
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 01x35-01x36 Multi-Episode Naming

Post by rednoah »

kim wrote: 17 Nov 2018, 17:28 Maybe a poll:

Do you want all episode numbers in the filename ?
e.g. 1x02-03-04
or
keep it like it is now and only show from-to e.g. 1x02-04
I actually implemented {kodi} with SxE style numbers (great mind think alike :P) instead of S00E00 style numbers to differentiate it more from the {plex} binding. In accordance the Kodi docs, the corresponding multi-episode formatting will be 1x02x03x04.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 24652
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 01x35-01x36 Multi-Episode Naming

Post by rednoah »

in10se wrote: 17 Nov 2018, 17:42 Dont know why it doesnt work with my filebot
Try with a few individual files, and not all your files at once, for testing. Maybe you can narrow down why it doesn't work for you.


:idea: Press F5 twice to print FileBot version information.

:idea: Press F7 to copy file / episode match model debug information.
:idea: Please read the FAQ and How to Request Help.
in10se
Posts: 18
Joined: 16 Nov 2018, 07:53

Re: 01x35-01x36 Multi-Episode Naming

Post by in10se »

Ok, will do, thanks rednoah. So I recreated the problem with Kodi.

Kodi 17.6
filebot 4.8.4

TEST: 1x22x23x24 e.g.

I tested it only with 5 episodes, names like this:

https://ibb.co/cxBGaL

Media Companion realizes it as multi:

https://ibb.co/cGYJpf

writes it in the info:

Code: Select all

 
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<multiepisodenfo>
    <episodedetails>
        <fileinfo>
            <streamdetails>
                <video>
                    <width>512</width>
                    <height>384</height>
                    <aspect>1,33</aspect>
                    <codec>xvid</codec>
                    <format>MPEG-4 Visual</format>
                    <durationinseconds>1285</durationinseconds>
                    <bitrate>1 002 kb/s</bitrate>
                    <container>.avi</container>
                    <scantype>Progressive</scantype>
                    <NumVideoBits>8</NumVideoBits>
                </video>
                <audio>
                    <codec>MP3</codec>
                    <channels>2</channels>
                    <bitrate>128 kb/s</bitrate>
                </audio>
            </streamdetails>
        </fileinfo>
        <title>Gator, Baiter</title>
        <season>1</season>
        <episode>22</episode>
        <aired>1990-10-27</aired>
        <plot>A wrestling gator is fed up with being humiliated by other wrestlers that break the rules. He leaves his career and then he encounters Tom and Jerry.</plot>
        <playcount>0</playcount>
        <director>
        </director>
        <credits>Patrick A. Ventura</credits>
        <ratings>
            <rating name="tvdb" max="10">
                <value>8.5</value>
                <votes>2</votes>
            </rating>
        </ratings>
        <rating>8.5</rating>
        <votes>2</votes>
        <uniqueid type="tvdb" default="true">266705</uniqueid>
        <runtime>21 min</runtime>
        <showid>77973</showid>
        <imdbid>
        </imdbid>
        <tmdbid>
        </tmdbid>
        <displayseason>
        </displayseason>
        <displayepisode>
        </displayepisode>
        <displayafterseason>
        </displayafterseason>
        <runtime>21 min</runtime>
        <epbookmark>
        </epbookmark>
        <videosource>
        </videosource>
        <userrating>0</userrating>
        <dvdepnumber>
        </dvdepnumber>
        <actor>
            <name>Frank Welker</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Charlie Adler</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Don Messick</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Danny Cooksey</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Dick Gautier</name>
            <role>
            </role>
        </actor>
    </episodedetails>
    <episodedetails>
        <fileinfo>
            <streamdetails>
                <video>
                    <width>512</width>
                    <height>384</height>
                    <aspect>1,33</aspect>
                    <codec>xvid</codec>
                    <format>MPEG-4 Visual</format>
                    <durationinseconds>1285</durationinseconds>
                    <bitrate>1 002 kb/s</bitrate>
                    <container>.avi</container>
                    <scantype>Progressive</scantype>
                    <NumVideoBits>8</NumVideoBits>
                </video>
                <audio>
                    <codec>MP3</codec>
                    <channels>2</channels>
                    <bitrate>128 kb/s</bitrate>
                </audio>
            </streamdetails>
        </fileinfo>
        <title>Hoodwinked Cat</title>
        <season>1</season>
        <episode>23</episode>
        <aired>1990-10-27</aired>
        <plot>In a homage to Little Red Riding Hood, Spike sends Tyke out to deliver a canary to his grandmother as Kyle has other plans for the bird.</plot>
        <playcount>0</playcount>
        <director>
        </director>
        <credits>Patrick A. Ventura</credits>
        <ratings>
            <rating name="tvdb" max="10">
                <value>8.5</value>
                <votes>2</votes>
            </rating>
        </ratings>
        <rating>8.5</rating>
        <votes>2</votes>
        <uniqueid type="tvdb" default="true">266706</uniqueid>
        <runtime>21 min</runtime>
        <showid>77973</showid>
        <imdbid>
        </imdbid>
        <tmdbid>
        </tmdbid>
        <displayseason>
        </displayseason>
        <displayepisode>
        </displayepisode>
        <displayafterseason>
        </displayafterseason>
        <runtime>21 min</runtime>
        <epbookmark>
        </epbookmark>
        <videosource>
        </videosource>
        <userrating>0</userrating>
        <dvdepnumber>
        </dvdepnumber>
        <actor>
            <name>Frank Welker</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Charlie Adler</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Don Messick</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Danny Cooksey</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Dick Gautier</name>
            <role>
            </role>
        </actor>
    </episodedetails>
    <episodedetails>
        <fileinfo>
            <streamdetails>
                <video>
                    <width>512</width>
                    <height>384</height>
                    <aspect>1,33</aspect>
                    <codec>xvid</codec>
                    <format>MPEG-4 Visual</format>
                    <durationinseconds>1285</durationinseconds>
                    <bitrate>1 002 kb/s</bitrate>
                    <container>.avi</container>
                    <scantype>Progressive</scantype>
                    <NumVideoBits>8</NumVideoBits>
                </video>
                <audio>
                    <codec>MP3</codec>
                    <channels>2</channels>
                    <bitrate>128 kb/s</bitrate>
                </audio>
            </streamdetails>
        </fileinfo>
        <title>Medieval Mouse</title>
        <season>1</season>
        <episode>24</episode>
        <aired>1990-10-27</aired>
        <plot>Squire Tom is told to clean a knight's castle and get rid of Jerry.</plot>
        <playcount>0</playcount>
        <director>
        </director>
        <credits>Sandy Fries</credits>
        <ratings>
            <rating name="tvdb" max="10">
                <value>8.5</value>
                <votes>2</votes>
            </rating>
        </ratings>
        <rating>8.5</rating>
        <votes>2</votes>
        <uniqueid type="tvdb" default="true">266707</uniqueid>
        <runtime>21 min</runtime>
        <showid>77973</showid>
        <imdbid>
        </imdbid>
        <tmdbid>
        </tmdbid>
        <displayseason>
        </displayseason>
        <displayepisode>
        </displayepisode>
        <displayafterseason>
        </displayafterseason>
        <runtime>21 min</runtime>
        <epbookmark>
        </epbookmark>
        <videosource>
        </videosource>
        <userrating>0</userrating>
        <dvdepnumber>
        </dvdepnumber>
        <actor>
            <name>Frank Welker</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Charlie Adler</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Don Messick</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Danny Cooksey</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Dick Gautier</name>
            <role>
            </role>
        </actor>
    </episodedetails>
</multiepisodenfo>
 
Kodi shows following:

Season -1
No episodes shown (pictures will follow if uploaded.

Filebot does this with the files:

https://ibb.co/naOwaL

It works with them. If I take eisodes from Season 02 or Season 04 it doesnt work with filebot. Somehow there is a connection with numbers and series (with some series it works).


_____________________________________________________________________________________


New test, sytem Kodi and filebot are the same

Filenamestyle: S01E01-S01E02-S01E03

seen here:

https://ibb.co/ivRk20

media companion recognized it as multi episodes:

https://ibb.co/nGUipf

wrote in into nfo:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<multiepisodenfo>
    <episodedetails>
        <fileinfo>
            <streamdetails>
                <video>
                    <width>512</width>
                    <height>384</height>
                    <aspect>1,33</aspect>
                    <codec>xvid</codec>
                    <format>MPEG-4 Visual</format>
                    <durationinseconds>1285</durationinseconds>
                    <bitrate>1 002 kb/s</bitrate>
                    <container>.avi</container>
                    <scantype>Progressive</scantype>
                    <NumVideoBits>8</NumVideoBits>
                </video>
                <audio>
                    <codec>MP3</codec>
                    <channels>2</channels>
                    <bitrate>128 kb/s</bitrate>
                </audio>
            </streamdetails>
        </fileinfo>
        <title>Gator, Baiter</title>
        <season>1</season>
        <episode>22</episode>
        <aired>1990-10-27</aired>
        <plot>A wrestling gator is fed up with being humiliated by other wrestlers that break the rules. He leaves his career and then he encounters Tom and Jerry.</plot>
        <playcount>0</playcount>
        <director>
        </director>
        <credits>Patrick A. Ventura</credits>
        <ratings>
            <rating name="tvdb" max="10">
                <value>8.5</value>
                <votes>2</votes>
            </rating>
        </ratings>
        <rating>8.5</rating>
        <votes>2</votes>
        <uniqueid type="tvdb" default="true">266705</uniqueid>
        <runtime>21 min</runtime>
        <showid>77973</showid>
        <imdbid>
        </imdbid>
        <tmdbid>
        </tmdbid>
        <displayseason>
        </displayseason>
        <displayepisode>
        </displayepisode>
        <displayafterseason>
        </displayafterseason>
        <runtime>21 min</runtime>
        <epbookmark>
        </epbookmark>
        <videosource>
        </videosource>
        <userrating>0</userrating>
        <dvdepnumber>
        </dvdepnumber>
        <actor>
            <name>Frank Welker</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Charlie Adler</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Don Messick</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Danny Cooksey</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Dick Gautier</name>
            <role>
            </role>
        </actor>
    </episodedetails>
    <episodedetails>
        <fileinfo>
            <streamdetails>
                <video>
                    <width>512</width>
                    <height>384</height>
                    <aspect>1,33</aspect>
                    <codec>xvid</codec>
                    <format>MPEG-4 Visual</format>
                    <durationinseconds>1285</durationinseconds>
                    <bitrate>1 002 kb/s</bitrate>
                    <container>.avi</container>
                    <scantype>Progressive</scantype>
                    <NumVideoBits>8</NumVideoBits>
                </video>
                <audio>
                    <codec>MP3</codec>
                    <channels>2</channels>
                    <bitrate>128 kb/s</bitrate>
                </audio>
            </streamdetails>
        </fileinfo>
        <title>Hoodwinked Cat</title>
        <season>1</season>
        <episode>23</episode>
        <aired>1990-10-27</aired>
        <plot>In a homage to Little Red Riding Hood, Spike sends Tyke out to deliver a canary to his grandmother as Kyle has other plans for the bird.</plot>
        <playcount>0</playcount>
        <director>
        </director>
        <credits>Patrick A. Ventura</credits>
        <ratings>
            <rating name="tvdb" max="10">
                <value>8.5</value>
                <votes>2</votes>
            </rating>
        </ratings>
        <rating>8.5</rating>
        <votes>2</votes>
        <uniqueid type="tvdb" default="true">266706</uniqueid>
        <runtime>21 min</runtime>
        <showid>77973</showid>
        <imdbid>
        </imdbid>
        <tmdbid>
        </tmdbid>
        <displayseason>
        </displayseason>
        <displayepisode>
        </displayepisode>
        <displayafterseason>
        </displayafterseason>
        <runtime>21 min</runtime>
        <epbookmark>
        </epbookmark>
        <videosource>
        </videosource>
        <userrating>0</userrating>
        <dvdepnumber>
        </dvdepnumber>
        <actor>
            <name>Frank Welker</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Charlie Adler</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Don Messick</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Danny Cooksey</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Dick Gautier</name>
            <role>
            </role>
        </actor>
    </episodedetails>
    <episodedetails>
        <fileinfo>
            <streamdetails>
                <video>
                    <width>512</width>
                    <height>384</height>
                    <aspect>1,33</aspect>
                    <codec>xvid</codec>
                    <format>MPEG-4 Visual</format>
                    <durationinseconds>1285</durationinseconds>
                    <bitrate>1 002 kb/s</bitrate>
                    <container>.avi</container>
                    <scantype>Progressive</scantype>
                    <NumVideoBits>8</NumVideoBits>
                </video>
                <audio>
                    <codec>MP3</codec>
                    <channels>2</channels>
                    <bitrate>128 kb/s</bitrate>
                </audio>
            </streamdetails>
        </fileinfo>
        <title>Medieval Mouse</title>
        <season>1</season>
        <episode>24</episode>
        <aired>1990-10-27</aired>
        <plot>Squire Tom is told to clean a knight's castle and get rid of Jerry.</plot>
        <playcount>0</playcount>
        <director>
        </director>
        <credits>Sandy Fries</credits>
        <ratings>
            <rating name="tvdb" max="10">
                <value>8.5</value>
                <votes>2</votes>
            </rating>
        </ratings>
        <rating>8.5</rating>
        <votes>2</votes>
        <uniqueid type="tvdb" default="true">266707</uniqueid>
        <runtime>21 min</runtime>
        <showid>77973</showid>
        <imdbid>
        </imdbid>
        <tmdbid>
        </tmdbid>
        <displayseason>
        </displayseason>
        <displayepisode>
        </displayepisode>
        <displayafterseason>
        </displayafterseason>
        <runtime>21 min</runtime>
        <epbookmark>
        </epbookmark>
        <videosource>
        </videosource>
        <userrating>0</userrating>
        <dvdepnumber>
        </dvdepnumber>
        <actor>
            <name>Frank Welker</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Charlie Adler</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Don Messick</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Danny Cooksey</name>
            <role>
            </role>
        </actor>
        <actor>
            <name>Dick Gautier</name>
            <role>
            </role>
        </actor>
    </episodedetails>
</multiepisodenfo>
kodi shows:

shows all episodes correctly, "Season 01" and all Episodes (78 Episodes of whole season).


I don't know guys, the rule of Kodi doesnt work. I need to name it S01E01-S01E02... The 1x01x02x03 or the 01xE01xE02... doesnt work. Any other of the wiki of kodi doesnt work neither. Only the S01E01-S01E02...

The problem with filebot not recognizing multi is only starting at Season 02 of any series and it is connected to special numbers. as shown in the pictures above on page one of this topic... Maybe one day will figure out why it is like that, but the problem is, I cant change any format. The format which works with every episode on filebot is: 01x02-03-04... But Kodi will not regognize it as correct format. So I need to stick with the format which Kodi recognized at the end and that means I need to rename my files (if multi episodes) "manually" with total commander tool.
in10se
Posts: 18
Joined: 16 Nov 2018, 07:53

Re: 01x35-01x36 Multi-Episode Naming

Post by in10se »

Here the uploaded pictures how it looked in kodi with other file namings (1x01x02x03.. 01x01-02-03...):

https://ibb.co/dW4DN0
https://ibb.co/hhRhFL

and here how it looks in kodi with naming S01E01-S01-E02....:

https://ibb.co/dzAOpf
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: 01x35-01x36 Multi-Episode Naming

Post by kim »

Check if your filenames is correct if you use thetvdb:
there is NO "Season 1" BUT it's ="Season 1940"
https://www.thetvdb.com/series/tom-and-jerry

1x01x02x03 = wrong
1940x01x02x03 = OK

"Season 1" = OK
https://www.thetvdb.com/series/tom-and-jerry-kids-show
Last edited by kim on 17 Nov 2018, 19:11, edited 2 times in total.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: 01x35-01x36 Multi-Episode Naming

Post by kim »

rednoah wrote: 17 Nov 2018, 17:54 I actually implemented {kodi} with SxE style numbers (great mind think alike :P) instead of S00E00 style numbers to differentiate it more from the {plex} binding. In accordance the Kodi docs, the corresponding multi-episode formatting will be 1x02x03x04.
Is it possible extract only the {SxE} part from {kodi} or {plex} ?
(other then using e.g. replaceAll or match to just remove all other stuff)
in10se
Posts: 18
Joined: 16 Nov 2018, 07:53

Re: 01x35-01x36 Multi-Episode Naming

Post by in10se »

Hi Kim,

show ID from nfo: <showid>77973</showid>

= https://www.thetvdb.com/series/tom-and-jerry-kids-show

you are confusing it with: https://www.thetvdb.com/series/tom-and-jerry

The ID and the show and the episodes are correct, it is correctly tagged in media companion.

I also tried with following shows:

garfield and friends
Rugrats
Hey Arnold

and many more shows. The only format which works is S01E01-S01E02...
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: 01x35-01x36 Multi-Episode Naming

Post by kim »

I cant replicate your problem...
When Kodi is not showing something it's properly because more then 1 file has same info
e.g. season and episode in nfo

Give only 1 filename that Filebot has a problem with ?
in10se
Posts: 18
Joined: 16 Nov 2018, 07:53

Re: 01x35-01x36 Multi-Episode Naming

Post by in10se »

It is ok Kim. No need to replicate it. As said, I have my workaround.

All I wanted is, to show you guys that the format is not correct for every Kodi station. If you read my post before and compare both nfo files you will see, that the process from both times where exactly the same. The only difference was the naming format 1x01x02x03 VS S01E01-S01E02-S01E03. One time Kodi has a problem with it, one time (with S01E01...) not.

The series and seasons Filebot has a problem with are all with format S01E01-S01E02... starting from Season 2 (e.g. Garfield and Friends) as seen in screenshots on first page of this topic.

But red already said he doesnt have those problems, so it must be something with my system especially or with my filebot version.
User avatar
Wolfie
Posts: 156
Joined: 27 Oct 2015, 02:59

Re: 01x35-01x36 Multi-Episode Naming

Post by Wolfie »

I'm curious, why do you want to use SxE-SxE-SxE vs s00e00-e00 as the format?
User avatar
rednoah
The Source
Posts: 24652
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 01x35-01x36 Multi-Episode Naming

Post by rednoah »

:idea: Please read the FAQ and How to Request Help.
Post Reply