Kodi Community Forum
regexp help for TV multi file episodes - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: regexp help for TV multi file episodes (/showthread.php?tid=52074)



regexp help for TV multi file episodes - detroitdr - 2009-06-01

Good afternoon.

I have TV shows downloaded from YouTube. (Lazytown for my son) The are in 3 parts per episode.

Problem: XBMC doesn't stack the three parts into 1 file. (Yes Stack TV eps is turned on under Video settings)

I think it has to do with the regexp for TV episodes is not natively supported but I have to add it for -part1, -part2 etc.

I used only the -partX format.

I have created the advancedsettings.xml file.. but not sure what to put in it to make it all work.

Any help?

(running the latest XBMC)

Thank-you in advance.


- nul7 - 2009-06-01

Code:
[ _\.-]+part[ _\.-]*([0-9a-d]+)

?


- detroitdr - 2009-06-01

Yes I agree. I just don't know how to implement it.

I THINK this is the original code for TV shows:

<tvshowmatching>
<regexp>\[[Ss]([0-9]+)\]_\[[Ee]([0-9]+)([^\\/]*)</regexp> <!-- foo_[s01]_[e01] -->
<regexp>[\._ \-]([0-9]+)x([0-9]+)([^\\/]*)</regexp> <!-- foo.1x09 -->
<regexp>[\._ \-][Ss]([0-9]+)[\.\-]?[Ee]([0-9]+)([^\\/]*)</regexp> <!-- foo, s01e01, foo.s01.e01, foo.s01-e01 -->
<regexp>[\._ \-]([0-9]+)([0-9][0-9])([\._ \-][^\\/]*)</regexp> <!-- foo.103 -->
</tvshowmatching>

How do I add that onto all of those options..
(Could you add it and paste back please?)

Thank-you


- nul7 - 2009-06-02

detroitdr Wrote:Yes I agree. I just don't know how to implement it.

I THINK this is the original code for TV shows:

<tvshowmatching>
<regexp>\[[Ss]([0-9]+)\]_\[[Ee]([0-9]+)([^\\/]*)</regexp> <!-- foo_[s01]_[e01] -->
<regexp>[\._ \-]([0-9]+)x([0-9]+)([^\\/]*)</regexp> <!-- foo.1x09 -->
<regexp>[\._ \-][Ss]([0-9]+)[\.\-]?[Ee]([0-9]+)([^\\/]*)</regexp> <!-- foo, s01e01, foo.s01.e01, foo.s01-e01 -->
<regexp>[\._ \-]([0-9]+)([0-9][0-9])([\._ \-][^\\/]*)</regexp> <!-- foo.103 -->
</tvshowmatching>

How do I add that onto all of those options..
(Could you add it and paste back please?)

Thank-you

<tvshowmatching>
<regexp>\[[Ss]([0-9]+)\]_\[[Ee]([0-9]+)([^\\/]*)</regexp> <!-- foo_[s01]_[e01] -->
<regexp>[\._ \-]([0-9]+)x([0-9]+)([^\\/]*)</regexp> <!-- foo.1x09 -->
<regexp>[\._ \-][Ss]([0-9]+)[\.\-]?[Ee]([0-9]+)([^\\/]*)</regexp> <!-- foo, s01e01, foo.s01.e01, foo.s01-e01 -->
<regexp>[\._ \-]([0-9]+)([0-9][0-9])([\._ \-][^\\/]*)</regexp> <!-- foo.103 -->
<regexp>[ _\.-]+part[ _\.-]*([0-9a-d]+)</regexp>
</tvshowmatching>

EDIT: But I don't think that will work. I don't know for sure how XBMC handles TV show naming, but looking at the other regex, it appears it may need to have a season and episode marker. I'm not sure "part#" can work in TV shows. Hopefully someone with more experience with the TV show side of things can chime in.