Posts: 1,418
Joined: Feb 2008
Reputation:
2
soder
Posting Freak
Posts: 1,418
2009-10-20, 11:52
(This post was last modified: 2009-10-20, 12:17 by soder.)
I remember that I could have season number in a own folder before, or at least as a part of a folder? Isnt this possible any longer, as default?
TV SHOW/S1/tvshow.ep1.year.mkv?
TV SHOW/show.S1.year/tvshow.ep1.year.mkv?
/Söder
Vero 4K with unRAID server and mysql (mariadb)
Posts: 422
Joined: Sep 2009
Reputation:
0
Read the regex post thats stickied at the top of the fourm. You'll have to potentially edit or add how XBMC recognizes folder names.
Windows 7 x64 Home Premium
Gigabyte MA78GM-U2SH Mainboard
ATI HD3200 Onboard
AMD 7750BE Dual-Core 4.00GB RAM
ATI HD3200 HDMI Sound
HTPC HMDI -> ONKYO TX-SR605 -> Panasonic TH-46PZ85U Plasma
Posts: 1,418
Joined: Feb 2008
Reputation:
2
soder
Posting Freak
Posts: 1,418
Would someone please help me here.
I'm pretty satisfied with the way the original rexexp works, but I would also like it to get the season from a "upper" folder.
I would like this to work:
Bands of brother/S1/Band.of.Brothers.part1.2001.720p.HDDVD.DTS.x264-ESiR.mkv
or
Bands of brother/Band.of.Brothers.S1.2001.720p.HDDVD.DTS.x264-ESiR/Band.of.Brothers.part1.2001.720p.HDDVD.DTS.x264-ESiR.mkv
also instead of part I would like to be able to have the Episode part like: part.1, e1,E1, e.1,E.1, ep1, Ep1, ep.1, Ep.1.....
but that if XBMC cant find the season in the filename, then just grab it from a upper folder.
Then I dont need to rename all the files, but just put all the files in a folder with the correct SX in the name.
I have created this regexp now, but I think I need some more help.
<regexp>[\\\/].*s[ \.\,\-\_]?([0-9]+).*[\\\/].*(?:e|ep|part)[ \.\,\-\_]?([0-9]{1,3})[ \.\,\-\_]+[^\\\/]+</regexp>
It seams to get
Generation Kill\Generation.Kill.S01.Part.7.720p.HDTV.X264-0TV\generation.kill.part.7.720p.hdtv.x264-0tv.mkv
but NOT
Band of Brothers\S1\Band.of.Brothers.ep01.2001.720p.HDDVD.DTS.x264-ESiR.mkv
and
Planet Earth\Planet.Earth.S01.2006.720p.HDDVD.x264-ESiR\Planet.Earth.Ep01.From.Pole.to.Pole.2006.720p.HDDVD.x264-ESiR.mkv
Would someone please help me.
/Söder
Vero 4K with unRAID server and mysql (mariadb)
Posts: 26,215
Joined: Oct 2003
Reputation:
187
I presume all those things have a single season. If so, no need to know about the season at all.
For Planet Earth for instance, just use something like:
<regexp>Planet.Earth.Ep([0-9]+)</regexp>
Seeing as I made it explicit, you can prepend it.
NOTE: Single set of () indicates we only want to match the episode number.
Cheers,
Jonathan
Posts: 26,215
Joined: Oct 2003
Reputation:
187
If you make a more general regexp that catches all your single-season shows, then yes.
I personally make them a little more specific, as they only have a single portion to match (the episode number) and hence will likely match other things.
Cheers,
Jonathan
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Exactly.
Just be careful that your expression doesn't match cases where you actually have the season number available.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Sure, but one presumes that'll match stuff like s04e04 as well.