Posts: 352
Joined: Oct 2007
Reputation:
0
The thing the regex looks for is the season/episode numbers in the filename. The rest of the name doesn't make a difference.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
foo is a placeholder.
as you can see none of the patterns match your filenames
Posts: 53
Joined: Nov 2004
Reputation:
0
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.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
please do. anything that makes it better and clearer is most welcome.
tcghost; ([^/\]*)[/\](.*)\....
Posts: 2
Joined: Nov 2007
Reputation:
0
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.)
Posts: 3
Joined: Nov 2007
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.
Can anyone help?
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Set Content on the folder containing Battlestar Galactica. It will then find the folder "Battlestar Galactica" and use that as the TV show name. If you set content on the "Battlestar Galactica" folder, it will use the "Season x" folder for the TV show name (thus choosing "Dark Season".
Delete your thumb cache if you are in files view and you have wrong thumbs.
Posts: 42
Joined: Jan 2007
Reputation:
0
Err.. I can't seem to find my exact one, and I don't seem to be able to grasp Regular Expression. Can someone check my work?
I use:
\Network share\TV\Show Name\Season ##\s##(season)e##(episode) Episode Name.XXX
So:
\Good Eats\Season 06\s06e09 Chops Ahoy.avi
From what I get of Regular expression (And I'm a noob), I should be using something like this:
<tvshowmatching>
<regexp>Season[0]*[\._ ]s([0-9]+)[0]*([0-9]+)e[0]*([0-9]+)[^\\/]*</regexp>
</tvshowmatching>
My understanding is that this will take the season, with the number, delete any leading 0's, move onto the episode season (s) and episode number, seperated by an e, again stripping leading 0's, then ignore any extra names like the episode name. Right? Or did I screw it up?
Posts: 26,215
Joined: Oct 2003
Reputation:
187
You screwed up, yes. The good news is that the default regexps (as of a couple of days ago) will handle your filename setup as-is.
Cheers,
Jonathan
Posts: 42
Joined: Jan 2007
Reputation:
0
Heh. Thanks, I guess. I've got a build from Dec 04, 2007. Guess I need a newer one.