• 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
  • 17
Regular Expressions
#91
Okay….. All my shows are in this format…
Series name\Season #\(###) Episode name
Example
The Wire\Season 3\(307) Back Burners

Since all my files are backed up to DVD and I don’t want to rename a couple hundred files and back those up again, I’ll try this….

I could match the first parentheses and return the next three digits.
The first digit is the season number and the next two is the episode number.
So…
[\(]([0-9])([0-9]+)
Could it be that simple?
Reply
#92
Arrrgghhhh!

Both spiff and I gave you regexps that'll work just fine. Why do you insist on trying to roll your own when you clearly do NOT understand it.

Take some time to READ what we've said, READ some tutorial sites, and try the regexps that we've given you out for yourself on regexp tester sites. Keep going until you understand it.

Let this be the end of it.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#93
I've never been much on forums.
Not real sure about the etiquette.
Sorry.
Reply
#94
Sorry to be such a bother guys.
Seeing all the other posts (almost 100 now) I thought this was a place for this kind of assistance. I don’t know how my questions were different from other people’s questions.

I did see that the answers were different though.
I appreciate that you took the time to explain how the thing works.

Thanks.
Reply
#95
Hi guys.

Excuse my n00bishness (and seemingly resurrecting a dead thread) but I'm having trouble getting my regular expressions to work.

All my shows are in this format:
[TV Show]/Season #/S##xE## - Episode Name.extension

I've tried all I can, but I think it just comes down to the fact I'm crap at all this Big Grin

Thanks a lot for your help.
Reply
#96
BlackDwarf Wrote:[TV Show]/Season #/S##xE## - Episode Name.extension
Change this line:
Code:
<regexp>[\._ \-][Ss]([0-9]*)[\.\-]?[Ee]([0-9]*)[^\\/]*</regexp>
To look like this (note the x):
Code:
<regexp>[\._ \-][Ss]([0-9]*)[\.\-x]?[Ee]([0-9]*)[^\\/]*</regexp>
I think that should work for you, unless I'm missing something obvious.
Reply
#97
Thanks szsori

However it doesn't seem to have worked.

Here's the (fairly empty) contents of my AdvancedSettings.xml:

Code:
<videostacking>
<tvshowmatching>
    <regexp>[\._ \-][Ss]([0-9]*)[\.\-x]?[Ee]([0-9]*)[^\\/]*</regexp>
</tvshowmatching>
</videostacking>

It picks up maybe a couple of episodes, but not all. Ideas?

Cheers
Reply
#98
mind the <advancedsettings>
Reply
#99
What, so there's supposed to be

Code:
<AdvancedSettings></AdvancedSettings>

around it all?

In that case, that could be the problem.... Huh
Reply
yes, as is clearly stated on the wiki (at times i wonder why we bother with the wiki - nobody reads it anyway it seems)
Reply
Ok, I apologise, however mine still doesn't seem to be working.

Contents are now:

Code:
<AdvancedSettings>
<videostacking>
<tvshowmatching>
    <regexp>[\._ \-][Ss]([0-9]*)[\.\-x]?[Ee]([0-9]*)[^\\/]*</regexp>
</tvshowmatching>
</videostacking>
</AdvancedSettings>

Is something still wrong for it to read this convention:

[TV Show]/Season #/S##xE## - Episode Name.extension
E.G.
[Heroes]/Season 1/S01xE05 - Hirros.avi
Reply
xml is case sensitive.

<advancedsettings>...</advancedsettings>

furthermore, <tvshowmatching> is NOT a childtag of <videostacking>

and your expression wont match those names obviously as it doesnt describe that pattern.

'we start with a ., a _, a ' ', a -. then a S or a s, 0 or more numbers we want, then optionally either a ., a - or a x, then a E or e then 0 or more numbers we want before we can have any number of chars that aint a slash'.

does that fit your filenames?
Reply
Jumping into this thread here...

My TV shows are stored on a NAS as
/TV/Series Name/Season #/## - episode.*

I thought from reading the wiki that I could just set the contents of the /TV folder to tv shows, and the scraper would recursively find each series name from there. It's not working that way. I instead have to set the content for each series folder and then do the scrape for each series folder individually.

I'm using the regexp supplied in the wiki for my naming scheme. Is what I'm expecting not the way this is supposed to work?

Cheers
Fred
Reply
yes, set the content of the tvshows folder making sure 'this folder contains a single tv show' is not ticked. that's how it is supposed to work and afaik thats how it works
Reply
Hi everyone,
I'm almos sure my XBMC's behavior is kind of strange... My tvshow path is:
TV\tvshow name\Season #\S##_E##. avi (ex.: TV\Life On Mars\Season 1|S01_E03.avi). Simple, ahn?! But doesnt work!
I made no changes to original tvshowmatching section, 'cause I believed that one of that expressions fits my situation, but dont work.
On the library, just the TV show name appear, with no season or even episodes inside it...
Can anyone help me with this? Thank you all!
Reply
  • 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
  • 17

Logout Mark Read Team Forum Stats Members Help
Regular Expressions1