Regular Expressions - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228) +---- Thread: Regular Expressions (/showthread.php?tid=25349) |
- douginoz - 2008-09-29 Paradise Regained. Handy tip: Put the advancedsettings.xml in c:\documents and settings\<login>\Application Data\XBMC\UserData Thank you, thank you, thank you - Narfotic - 2008-10-05 Can anyone help me modify the expression to match this: example... The Sopranos/S01/The Sopranos S01 E01.avi Been trying to do it myself, but can't seem to get it to work... Thanks in advance. - ssboisen - 2008-10-20 Narfotic Wrote:Can anyone help me modify the expression to match this: Try this one S([0-9]+)[^\\/]* - Valpen - 2008-10-22 I would like some help with my config to match this: TV/Name.S05E01.DSR.XviD-GROUP/ or TV/Season 05/Name.S05E01.DSR.XviD-GROUP/ - jmarshall - 2008-10-22 Welcome to the forums Valpen. Said naming is supported by default if it's part of the filename, though you appear to have individual files in separate folders? What are the filenames called? - Valpen - 2008-10-22 jmarshall Wrote:Welcome to the forums Valpen. Thx. It's RAR archives. TV/Name.S05E01.DSR.XviD-GROUP/*.rar - jmarshall - 2008-10-22 If you have transparent rar's enabled it may work out of the box, but it would depend on what they're named. - Valpen - 2008-10-22 It dont. I tried that already. Tha filenames can be pretty mutch anything. - jmarshall - 2008-10-22 You might have to alter the regexp so that the / and \\ are ignored, so that it takes the season and episode numbers from the folder names. Cheers, Jonathan - Valpen - 2008-10-22 How do I do that? I'm a complete newbie at this. - jammu - 2008-10-26 Hi, I have now browsed this forum, wiki and all over internet for answer the same issue than Valpen has. My directory structure is: TVSeries -SeriesX.S12E10.DSR.XviD-0TV --SeriesX.s12e10.dsr.xvid-0tv.avi -SeriesY.S02E03.HDTV.XviD-XOR --SeriesY.s02e03.hdtv.xvid-xor.avi All my series are downloaded to this TVSeries -folder without any further moving to different folder and i delete those when i have watched them. I dont keep my xbox on all the time, so every time i watch something i put it on and my library is updated. Tried to figure out how to form proper scraper, but i cant figure it out and if someone has solution it would be great.. Tho i think that i need to start debugging my xbmc and start to read what logs says about that. This is great forum and here is tons of useful stuff.. good community going on here thanks for that. - Taalen - 2008-12-03 Unfortunately I must join the crowd not getting these things to work at all. I've spent a couple of days with the tutorials, read the entire thread, tried various tricks, but nothing seems to work. Examples of my filing system: \Sopranos s1\The Sopranos - 105 - College.avi \Rome\Rome - 101- The Stolen Eagle.avi So, \series (with or without s+season#)\series - s#e## - episode name.avi From what I've gathered, this SHOULD do the trick: <tvshowmatching> <regexp>([0-9]+)([0-9][0-9])[^\\/]*</regexp> </tvshowmatching> (and yes, <advancedsettings> is included). However, nothing turns up in any scans. Though I have a feeling there must be something I've overlooked and haven't noticed anywhere. Just for a test I tried renaming some of my stuff according to formulas supported by default, and scans still wouldn't find anything. Any ideas appreciated. - stacked - 2008-12-03 try using <tvshowmatching action="append">. So it will look like: Code: <advancedsettings> - byakkun - 2009-01-02 my directory structure and file naming is: Code: \TV Shows\[TV_Show_name]\Season [Season_Number]\[TV_Show_name] - [Ss][Season_Number][Ee][Episode_Number] [Other_stuff].ext 1. \TV Shows\Battlestar Galactica 2003\Season 4\Battlestar Galactica - s04e09 [720p.HDTV.x264] [2HD].mkv 2. \TV Shows\STAR WARS The Clone Wars\Season 1\STAR WARS the Clone Wars - S01E10 - The Lair of General Grievous.mkv I tried the following expression but it doesn't work. Code: <advancedsettings> I don't know what's wrong. Please help me. I'm willing to make small adjustments to the way I name my files (spacing, case, order) but I need all the components because if I forgot where I put the file at some point it is nice to be able to search tor it. Thanks. - spiff - 2009-01-02 both of those examples works just fine with the standard expressions. no reason to customize anything |