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)
- raymondh - 2007-11-09 18:40
SleepyP Wrote:have you guys seen the examples here:
I have. I followed this one:
\Season #\## (Season# is at very end of directory name, and filename starts with episode name, neither have to be a specific number of digits) :
Example : \Battlestar Galactica\Season 3\01 - Occupation.avi (Season 3, Episode 1)
And the banner shows up at the top most directory level but inside that folder (where is lists the seasons) it shows a banner for a show called Dark Season and nothing inside there.
- jmarshall - 2007-11-09 23:23
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.
- Calmiche - 2007-12-11 01:06
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?
\Network share\TV\Show Name\Season ##\s##(season)e##(episode) Episode Name.XXX
\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:
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?
- jmarshall - 2007-12-11 01:16
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.
- Calmiche - 2007-12-11 01:27
Heh. Thanks, I guess. I've got a build from Dec 04, 2007. Guess I need a newer one.
- pbu50w - 2008-06-11 21:51
After going through the same problems many people seem to be having here, I took a step back and relooked at the problems and what experienced users were saying.
Basically I had taken a lot of time to organise my collection all with the same layout, eg
From the replies I have looked at, all the default settings should pickup this (and many similar variations) without the use of advancedsettings.xml
I therefore deleted advancedsettings.xml, and UserData\Database\MyVideos*.db files (you might need to set Video-Library to not enabled to delete the latter), to start afresh.
Then restarted my XBox to refresh the configuration.
Firstly re-enable the library from Settings-Video-Library-Enable Library
Go to your Video Root which should display all you folders containing either files or Series folders with files in.
On each folder in the root (not the serier folders) bring up the Context Menu and select "Set Content"
Change it to say the directory cotains TV Shows and click OK (leaving "Run automated Scan" unchecked). You should finish back at the root screen.
Then open the Contect Menu again and select "TV Show Infrmation". A screen will appear, select the correct TV Show from the list and if all is well the directory will then be scanned and a TV show Information Screen will appear. Success!!!
You can then go into the folder and the Series Folders (if applicable) and hitting Info when on a file name will bring up the episode information.
Hope this helps people who appear to be struggling in tackling a problem in what I think is the wrong way.
<tvshowmatching> broken? - Pr.Sinister - 2008-07-03 10:48
I have the following in my advancedsettings.xml file :
This was working fine with a late 2007-early 2008 build (can't remember what i had) but i just upgraded to the June 30th T3CH build to use the latest Vision2 and Aeon skins and this no longer works for me.
My TV Shows are in this format :
TV Shows (Source)\Seinfeld\Season 1\Seinfeld-(1x01)-Pilot.avi
I was able to scan all my TV Shows lie this previously but i just made the mistake of deleting my library and do a total rescan so i could get the FanArt and episode thumbnails but now i am SOL.
Is this a bug or have they changed the way the <tvshowmatching> tag works?
Any help is appreciated.
My fault - Pr.Sinister - 2008-07-03 11:16
I found the problem...
I did not have the <advancedsettings> tag in my advancedsettings.xml file.
In my defense, it worked without it on that older build i had
- kraqh3d - 2008-07-03 18:10
I doubt that. The "advancedsettings" opening tag has always been required. The "action" parameter is brand new, added about a week ago. And there is no custom "twopart" regexp.
- Pr.Sinister - 2008-07-03 21:29
kraqh3d Wrote:I doubt that. The "advancedsettings" opening tag has always been required. The "action" parameter is brand new, added about a week ago. And there is no custom "twopart" regexp.
Yes the "action" parameter i changed it to many things while troubleshooting.
I had it as append="yes" before.
As for the <twopart>, that was taken from the online manual months ago.
It may have been removed since then but it was a documented feature at some point. Other users reference it in this very thread so we didn't just pull
it out of thin air. A quick scan shows at least these 2 posts : This one & This one
I always keep my UserData folder and my advancedsettings.xml was dated
October 2007 and my TV Shows were added to the library no problem without
that tag. It may have been a bug but i am not lying when i say i didn't have it
in my file.
I am a savvy user and have been using XBMC since it was XBMP and if i messed up, i have no problem admitting my mistakes. I do it a work where it matters so why not do it in cyberspace where nobody knows me for real? I have absolutely nothing to gain by lying...
I'm sorry if this is not what you meant but the way i took it is that i was lying when i said it worked without the tag before. I deal with users everyday that tell me they didn't change anything on their computer or software config and that it suddenly doesn't work. 99% of the time, they are full of it and that pisses me off but there is the odd 1% that truly didn't change anything and it is something on one of my servers that messed them up or something i changed on the backend.
Anyway... I am ranting... sorry...