XBMC Community Forum
Regular Expressions - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+--- Thread: Regular Expressions (/showthread.php?tid=25349)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25


- matt_cyr - 2007-10-05 18:10

The thing the regex looks for is the season/episode numbers in the filename. The rest of the name doesn't make a difference.


- spiff - 2007-10-06 09:42

foo is a placeholder.

as you can see none of the patterns match your filenames


- VTurn - 2007-10-16 23:36

spiff Wrote:OKAY SERIOUSLY.

what is unclear about the wiki page. there are examples that describe which filename every single default expression matches.

in addition there are a ton of additionals also with examples.

i'm asking so we can change it to the better.
Let me explain what I found confusing : the fact that there are no complete examples, i.e. containing the folder structure, etc. I think that there is a lot of very useful information in this post, when you explained that the title of the show is actually the folder name under the main folder defined as "TV shows" content, etc.

I could try something up, if you are interested (and also provided I do understand how it is supposed to work Big Grin)

V.


- tcghost - 2007-10-17 05:58

I need some help with music videos scraper as I'm really bad with regular expressions. Can someone provide the correct regex for the following format:
Artist\Song.ext
Will be very much appreciated, thanks in advance.


- VTurn - 2007-10-17 09:36

VTurn Wrote:I could try something up, if you are interested (and also provided I do understand how it is supposed to work Big Grin)
Err. I mean I could try to write something up, if you are interested.

V.


- spiff - 2007-10-17 09:57

please do. anything that makes it better and clearer is most welcome.

tcghost; ([^/\]*)[/\](.*)\....


- dementio - 2007-11-04 13:26

Can someone help me out? I've tried multiple regexp strings and can't seem to get mine to work.
My TV shows are all in //UNIMATRIX/Tv/ they are all in a directory by show name (e.g. Smallville, Simpsons, etc) with the naming scheme of S##E##.avi
XMBC sees the show titles fine, but it can't find the actual video files in library mode (I can browse to them ust fine.)


- dementio - 2007-11-04 23:17

dementio Wrote:Can someone help me out? I've tried multiple regexp strings and can't seem to get mine to work.
My TV shows are all in //UNIMATRIX/Tv/ they are all in a directory by show name (e.g. Smallville, Simpsons, etc) with the naming scheme of S##E##.avi
XBMC sees the show titles fine, but it can't find the actual video files in library mode (I can browse to them ust fine.)

Oh, almost forgot. Each series is also broken down another directory by season number. An example of a complete path is:
//UNIMATRIX/Tv/Dexter/Season 2/S02E01.avi


Am I doing something wrong with regexp? - legwind - 2007-11-09 07:29

Apart from probably posting when I should have been able to figure it out myself, I'm wondering what I'm doing wrong.
My HTPC has TV shows stored in the following format:

\TVShow\Season xx\01 - EpisodeName.avi

And I can't seem to get a regular expression that works properly.
I've followed the instructions on wiki as closely as I can, but I'm not the brightest match in the box. Smile
Can anyone help?


- SleepyP - 2007-11-09 10:24

have you guys seen the examples here:
http://xboxmediacenter.com/wiki/index.php?title=TV_Shows#TV_show_file_naming_conventions