Page 1 of 1
Multi-Part Episodes in Kodi/Ember Format with matching absolute titles
Posted: 15 Jul 2016, 00:05
by ss4johnny
I think FileBot has a tremendous amount of powerful features, but it seems like I'm learning more about them from the forum than any documentation. I struggled a bit to get multi-episode files in to a format that would work well with Kodi & Ember Media Manager.
I was able to use
Code: Select all
{primaryTitle}.{s00e00.removeAll('-')}.{t}
For two-part episodes, but to get N-part episodes working I had to use
Code: Select all
{primaryTitle}.S{s.pad(2)}E{es*.pad(2).join('E')}.{t}
Now I'm trying to see if I can make an adjustment so that the above has absolute numbers. I tried
Code: Select all
{primaryTitle}.S{s.pad(2)}E{es*.pad(2).join('E')}.{t} ({absolute})
but this only puts the first episode's absolute number in there. For instance, the output will look like
showname.S01E01E02.ep1 & ep2 (1).ext
instead of something more like
showname.S01E01E02.ep1 (1) & ep2 (2).ext
I played around with this a bit, but I really had no idea how to figure it out. The {es*} trick I only figured out from the forum and I tried something similar without luck for {ts}
Re: Multi-Part Episodes in Kodi/Ember Format with matching absolute titles
Posted: 15 Jul 2016, 04:50
by rednoah
1.
{s00e00} will give you multi-episode numbers as per Plex standard:
https://support.plex.tv/hc/en-us/articl ... d-TV-Shows
If it works for Plex, it should work for all the others as well, right? What format does Kodi/Ember want?
2.
{episodes} will give you the individual Episode objects as List for a given MultiEpisode object.
e.g.
Re: Multi-Part Episodes in Kodi/Ember Format with matching absolute titles
Posted: 15 Jul 2016, 17:11
by ss4johnny
I appreciate the prompt reply.
Kodi has a pretty good summary here of what is required for all TV shows.
http://kodi.wiki/view/Naming_video_files/TV_shows
Below are the different options for multi-part. You'll note that it does not support the S01E01-E03 approach.
anything_s01e01_s01e02.ext
anything.s01e01.episode1.title.s01e02.episode2.title.ext
anything.s01e01.s01e02.s01e03.ext
anything.1x01_1x02.ext
anything.ep01.ep02.ext
anything.s01e01e02.ext
anything.s01e01-02-03.ext
anything.1x01x02.ext
anything.ep01_02.ext
2.
{episodes} will give you the individual Episode objects as List for a given MultiEpisode object.
e.g.
Thanks, will try when I get home.
Re: Multi-Part Episodes in Kodi/Ember Format with matching absolute titles
Posted: 15 Jul 2016, 19:30
by rednoah
Just using {episode} might actually give you the value you want. The default String representation lists all SxE numbers of all episodes in SxE format.
Re: Multi-Part Episodes in Kodi/Ember Format with matching absolute titles
Posted: 16 Jul 2016, 00:46
by ss4johnny
rednoah wrote:Just using
{episode} might actually give you the value you want. The default String representation lists all SxE numbers of all episodes in SxE format.
I actually like
Code: Select all
{primaryTitle}.S{s.pad(2)}E{es*.pad(2).join('E')}.{t} ({episodes.absolute.join('-')})
My files are currently labeled like
showname.S01E01.ep1.S01E02.ep2.S01E03.ep3.ext
and they become
showname.S01E01E02E03.ep1, ep2 & ep3 (1-2-3).ext
It's not
exactly what I wanted, but it resolves my issue. Basically, I want to be able to just search for a particular episode by absolute numbering. So long as each absolute number is listed somewhere searchable, it fulfills my requirements.
For specials it has (null) at the end, which ideally would just be blank, but it's not a dealbreaker for me.
Re: Multi-Part Episodes in Kodi/Ember Format with matching absolute titles
Posted: 17 Jul 2016, 08:08
by rednoah
You can exclude null values (and 0 values) quite easily like this:
Code: Select all
{episodes.absolute.findAll().join('-')}
Specials generally don't have absolute numbers, but normal episodes also might not if that data hasn't been entered yet.
Re: Multi-Part Episodes in Kodi/Ember Format with matching absolute titles
Posted: 18 Jul 2016, 16:15
by ss4johnny
rednoah wrote:You can exclude null values (and 0 values) quite easily like this:
Code: Select all
{episodes.absolute.findAll().join('-')}
Specials generally don't have absolute numbers, but normal episodes also might not if that data hasn't been entered yet.
Cool, thanks.