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) |
- zaphodmcmillan - 2009-01-08 I am trying to get XBMC to pick up the tv shows that itunes stores (don't ask, just at the moment I am happy having itunes storing them) However I also love the XBMC interface/networking I have the tv shows stored in folders for each show. XBMC picks these up fine. Then the files are saved as S-EE episode name.mp4 (note these arn't protected files) eg 1-07 Awkward Phase.mp4 I have created a regexp for the advance settings.xml file ([0-9]+)-([0-9]+)[^\\/]* to try and get it to pick them up. However at best it picks up the first episode of a season up only. What am I doing wrong? - jessicah - 2009-01-09 I have structure like: TV\Heroes\Heroes.S01E01.HDTV.XviD-LOL.avi where TV is the added source. When I right click Heroes > TV Show Information, I get a dialog asking to set title, which has defaulted to Heroes. I click Done, and this just pops up repeatedly until I manage to cancel out of it, and I don't get anything added to library (it's disabled since nothing in it). Thanks, Jessica - reise - 2009-04-16 This is driving me crazy, please someone help me... I have the structure as Code: \Ice Road Truckers\Season 1\ice.road.truckers.s01e01.avi My advancedsettings.xml is like this (but I know It's not needed) Code: <advancedsettings> The series appears in the library but without episodes. My log is here http://pastebin.com/m726c51b0 - dc_williamson - 2009-06-07 Hello all... so, before I post details of my directory structure and log file, with the various regexp strings I've been playing with (and failed to make work and pleas for assistance can I ask, where should advancedsettings.xml go? And just to complicate things, I'm running Windows 7 RC1... Right now I see this in the log file: NOTICE: special://masterprofile/ is mapped to: C:\Users\David\AppData\Roaming\XBMC\userdata blah NOTICE: special://profile/ is mapped to: special://masterprofile/ blah NOTICE: Loaded advancedsettings.xml from special://profile/advancedsettings.xml ...and my advancedsettings.xml file is in that location (along with other various .xml files). So all good, yes? Thanks in advance, Temporarily Insane #2 Here is my issue - kcallis - 2009-08-17 I thought I had a handle on my regex statement, but I am running into a wall. My directory structure is as follows: TV Series/Series Name/Series Name - S#xE# - Episode Name.avi TV Series/Smallville/Smallville - 6x01 - Zod.avi TV Series/Hung/Hung 02 - Great Sausage or Can I Call You Dick.avi I thought this would work for me, but so far no go, <advancedsettings> <tvshowmatching> <regexp>[^\/]* [0]*([0-9]+)[xX][0]*([0-9]+)[^\/]*</regexp> </tvshowmatching> </advancedsettings> So where am I going wrong? Any pointers would be greatly appreciated! - pauldsmyth - 2011-09-06 Ok I'm going mental here. Am I the only person on the planet to subdivide by genre? I am sick to death of EVERY show under Sci-Fi getting labellled "Sci-Fi Harry" wtf? Simple logical directory structure: /[source]/Genre/Show/Season #/Show name - [season #]x[episode #] - [Episode Title].ext Read the wiki over and over and nothing jumps out. Extremely close to giving up. Mythtv and Sickbeard have NO problem with this format. - pauldsmyth - 2011-09-06 So basically I've had to go and add each genre as a video source to work around it. Messy but it works Seriously need some help - Media - 2011-12-11 I've been at this for hours... I'm on the latest nightly build. I've read this thread and several dozen more, googled it, tried more settings than I can remember. I'm trying to figure out how to get XBMC to work with the following Souce\Urda\Urda - 01.avi Souce\Urda\Urda - 02.avi Souce\Urda\Urda - 03.avi Source\FLCL\FLCL - 01 Source\FLCL\FLCL - 02 Source\FLCL\FLCL - 03 Source\Freedom\Freedom - 01 Source\Freedom\Freedom - 02 Source\Freedom\Freedom - 03 I have been trying to get info from both The TVDB and ANIDB.net Both of them would get the series title, and the artwork, but no episodes would show in the library. I enabled Debugging mode and found that it could not enumerate the files Changing as follows works for both scrapers. Souce\Urda\S01E01 - Urda.avi Souce\Urda\S01E02 - Urda.avi Souce\Urda\S01E03 - Urda.avi So I know there isn't a technical issue. I would really like to use my existing file naming convention, renaming the files is really not a realistic option, even with a batch renamer since the majority of the files reside on non-writable disks Please help, what string do I need to put in my AdvancedSettings file Thank you in advance, Media - scudlee - 2011-12-11 Try: Code: <advancedsettings> - Media - 2011-12-11 scudlee Wrote:Try: THANK YOU! Works great. - JohanXBMC - 2011-12-28 Hi, I feel rather stupid but I've spent the last hours trying to figure out how to solve my "problem" with the filenames for TV-shows. I know that the easiest way would be to simply re-format all the files to the native xmbc format...but that will take quite some time and since I'm using a Pinnacle MC extender in another room that uses the filenames themselves I would prefer not to do so. So finally I have to admit to myself that I need your help. I have a separate folder for each show and the file format is: \Show\Show (sXX) YY.avi or \Show\Show (sXX) YY - Episode name.avi How can I format the tvshowmatching string so that XMBC will recognize this? Thanks in advance, Johan - Dadde - 2012-01-25 Please i need some help because i'm going crazy. My folder structure is like: \Telefilm\Lost Season 1\Lost - 1x01 - Pilot.avi i use this advancedsettings.xml: Quote:<advancedsettings> But i can't get result for episode list. My xbox.log says: Quote:19:57:47 T:103034880 DEBUG: OnProcessSeriesFolder - no match for show: 'Leverage - Consulenze Illegali', season: -1, episode: -1, airdate: '31/12/1969', title: 'leverage - 4x01 - caccia al tesoro.avi' Please help me to find the right exp. TNX IN ADVANCE - Dadde - 2012-01-27 Dadde Wrote:Please i need some help because i'm going crazy. Please give me some help - jmarshall - 2012-01-27 Your problem is the tvshow title MUST be there, directly inside the folder you "Set Content" on. "Lost Season 1" is not the name of the show, the name of the show is Lost. - Dadde - 2012-01-27 tnx for your reply, but if i change my structur folder in: Telefilm\Lost\Season 1\Lost - 1x01 - Pilot.avi with the same regexp, xbox.log is allways the same and i get informations for series but no infomations for episodies. |