Regular Expressions

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
stokkes Offline
Member
Posts: 78
Joined: Feb 2004
Reputation: 0
Post: #31
blakholephysics:

Yes, I did mean a capital Z.. ie: [0-9a-zA-Z]

The regexp is just a tad more specific than it needs to be. You could probably cut it off earlier. I did test it like that and it seems to be working.
find quote
stokkes Offline
Member
Posts: 78
Joined: Feb 2004
Reputation: 0
Post: #32
Crap, can't edit the post.

One thing I did want to mention about regexp when scanning into your Library (for TV Shows, Movies, anything using a scraper). Make sure it's being detected by that scraper otherwise your regexp could be fine, but if the show isn't being detected on TV.com or IMDB, it won't really work.

That was my issue with a directory "Stargate SG-1", for some reason, it wasn't detecting it on TV.com (I had to manually add it), once that was done, the shows were detected without issue using my original Regexp (boy do I feel stupid having posted that rant a few posts above this one).

Oh well, live and learn.
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #33
well, to make you feel slightly better.

there sure are bugs and limitation in our regexp parser. the most irritating being the lack of nongreedy support :/
find quote
blakholephysics Offline
Member
Posts: 67
Joined: Jun 2006
Reputation: 0
Post: #34
The main shows that I'm trying are "Lost", "The Office", and "Heroes"
A plot summary does come up but it lacks any episodes...

Well, I guess I'll wait until the next tech build and try it over again.
Thanks for the help though.

And as it stands, I think that a website mentioned earlier - http://www.regextester.com/ - should be included in the wiki
find quote
majestix Offline
Junior Member
Posts: 3
Joined: Mar 2007
Reputation: 0
Post: #35
Running XBMC-SVN_2007-03-23_rev8306-T3CH-PROPER with the following settings, I have noticed the following:

AdvancedSettings.xml contents:

<advancedsettings>
<tvshowmatching>
<regexp>[Ss](\d+)[Ee](\d+)</regexp>
</tvshowmatching>
</advancedsettings>


Directory Structur and Naming Convention

F:\Videos\Family Guy\Season 1\S01E01 Death Has a Shadow.avi
F:\Videos\Family Guy\Season 1\S01E02 I Never Met the Dead Man.avi
F:\Videos\Family Guy\Season 1\S01E03 Chitty Chitty Death Bang.avi
F:\Videos\Family Guy\Season 1\S01E04 Mind Over Murder.avi
F:\Videos\Family Guy\Season 1\S01E05 A Hero Sits Next Door.avi
F:\Videos\Family Guy\Season 1\S01E06 The Son Also Draws.avi
F:\Videos\Family Guy\Season 1\S01E07 Brian Portrait of a Dog.avi
F:\Videos\Family Guy\Season 2\S02E01 Peter Peter Caviar Eater.avi
F:\Videos\Family Guy\Season 2\S02E02 Holy Crap.avi
F:\Videos\Family Guy\Season 2\S02E03 DaBoom.avi
etc....

OR

F:\Videos\Family Guy\Season\S01E01 Death Has a Shadow.avi
F:\Videos\Family Guy\Season\S01E02 I Never Met the Dead Man.avi
etc...

Program 'Family Guy' is entered into library but does NOT find ANY episodes and import them into the Library

Change Directory Structuer to:
F:\Videos\Family Guy\01E07 Brian Portrait of a Dog.avi
OR
F:\Videos\Family Guy\Stuff 1\S01E07 Brian Portrait of a Dog.avi
F:\Videos\Family Guy\Stuff 2\S02E01 Peter Peter Caviar Eater.avi

Episodes in root of 'Family Guy' directory as well as 'Stuff 1' and 'Stuff 2' directories are entered into Library

Any time I have the word 'Season' In the directory name the files are skipped. Not sure if this is an issue with my RegEXP or a bug in XBMC Any Thoughts?


Interesting Side Note:

Directory Structure
F:\Videos\Family Guy\The Simpsons\S01E01 Death Has a Shadow.avi

VIA 'Set Content' run on the 'Videos' or 'Family Guy' directory all episodes in F:\Videos\Family Guy\The Simpsons\ are entered into the Library as Season 1 Episode 1 of 'The Simpsons'

Likewise for 'Scan for new content' Run on the 'Family Guy' folder the episodes are entered as Season 1 Episode 1 of 'The Simpsons'

However, VIA 'TV Show Information' run on the 'Family Guy' folder The file 'S01E01 Death Has a Shadow.avi' is entered into the library as Family Guy Season 1 Episode 1
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #36
fixed in svn.

as for set content, are ppl blind. it says tv showS S S S S S.

a tv show is a folder.

if you assign tv showS content to the family guy dir you say that all subfolders for this dir is a tvshow. it does exactly what you ask it to do.
find quote
scool Offline
Member
Posts: 89
Joined: Mar 2007
Reputation: 0
Post: #37
Running XBMC-SVN_2007-03-23_rev8306-T3CH-PROPER with the following settings

AdvancedSettings.xml contents:
Quote:<advancedsettings>
<tvshowmatching>
<regexp>.*[Ss]([0-9]*).*[Ee]([0-9]*).*</regexp>
<regexp>\[[Ss]([0-9]*)\]_\[[Ee]([0-9]*)[^\\/]*</regexp>
<regexp>[\._ \-]([0-9]*)x([0-9]*)[^\\/]*</regexp>
<regexp>[\._ \-][Ss]([0-9]*)[\.\-]?[Ee]([0-9]*)[^\\/]*</regexp>
<regexp>[\._ \-]([0-9]*)([0-9][0-9])[\._ \-][^\\/]*</regexp>
<twopart>
<regexp>\[[Ss]([0-9]*)\]_\[[Ee][0-9][0-9]\-([0-9]*)\][^\\/]*</regexp>
<regexp>[\._ \-][Ss]([0-9]*)[^0-9]*[Ee]([0-9][0-9])[^\\/]*</regexp>
<regexp>[\._ \-][Ss]([0-9]*)[^0-9]*[Ee][0-9][0-9]\-([0-9]*)[^\\/]*</regexp>
<regexp>[\._ \-][0-9]*x[0-9]*[\._ \-]*([0-9]*)x([0-9]*)[^\\/]*</regexp>
</twopart>
</tvshowmatching>
</advancedsettings>

Directory Structur and Naming Convention :
(it's on a smb share)
Quote:Series\4400 S03\4400 S03 E01.avi
Series\Greys Anatomy S02\Greys Anatomy S02 E01.avi
Series\Joey\Joey S02 E12-13.avi

i have assigned tv shows content to the Series folder and i do a complete Scan. All series are found but episodes are all skipped, the only one episode found on all my series is the last one : Joey\Joey S02 E12-13.avi it appear like Saison 2/Joey Episode 13 in library mode.

The regexp in red is the one i added to match my naming, i tested it on some sites and tools and it work 100%.
any idea what i can do to have it work ?
thx in advance and believe me i tried a lot of things before post here ..

take care.

Xbox - Xbmc4Xbox
Atv2 - XBMC V12
G-Box Midnight - XBMC V12
Raspbery Pi 512 - RaspBmc - Xbmc V12
Raspbery Pi 512 - Xbian - Xbmc V12
I love XBMC Since XBMP !! so it's a long long story....
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #38
get a newer version, there are bugs in that one.
find quote
scool Offline
Member
Posts: 89
Joined: Mar 2007
Reputation: 0
Post: #39
ok i'll wait the next T3CH version so. i'm not able to compil it myself (not the tools for..)

Xbox - Xbmc4Xbox
Atv2 - XBMC V12
G-Box Midnight - XBMC V12
Raspbery Pi 512 - RaspBmc - Xbmc V12
Raspbery Pi 512 - Xbian - Xbmc V12
I love XBMC Since XBMP !! so it's a long long story....
find quote
majestix Offline
Junior Member
Posts: 3
Joined: Mar 2007
Reputation: 0
Post: #40
Spiff, thanks for your help.

Quote:as for set content, are ppl blind. it says tv showS S S S S S.

That makes perfect sense now. After 4 hours of testing other things that was extremely confusing
find quote
majestix Offline
Junior Member
Posts: 3
Joined: Mar 2007
Reputation: 0
Post: #41
Does anyone know of anyway to scan for Episodes inside of RAR files?
I've tried a number of different things and nothing has worked.
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #42
yah, i'm pondering adding 'tvshow' as content type as well but i bet it wouldnt help a bit ;D
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #43
enable transparent archives.

required for any rarred content scanning.
find quote
El Piranna Offline
Senior Member
Posts: 284
Joined: Nov 2006
Reputation: 0
Location: 01 - The city of the machines
Post: #44
I have found this page (http://www.xboxmediacenter.com/wiki/inde...e=TV_Shows) and it seems that it fails with me by the regexp. I have, for example, "Las chicas Girlmore\T1\01 - Capitulo piloto". It means i must to change "Season " by "T" to make it work? What file is it? How it would be possible to add several regexp? Season is english only, so here at spain we use more the "TvShow [season]x[chapter] - chapter name" for individual chapters and "TvShow/T[season]/[chapter] - chapter" for full TvShows...
find quote
TornSack Offline
Junior Member
Posts: 10
Joined: Oct 2006
Reputation: 0
Post: #45
If seen several comments about scanning recursively when "set content" = TV Shows, however, I don't have this option when I set content = TV Shows.

When I set content = Movies I do have the option to scan recursively.

What am I doing wrong? I'm running XBMC rev8582.
find quote
Post Reply