Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 17
Regular Expressions
#46
OK.. I must be an idiot..

I am downloading my TV shows via RSS torrents.

I have them all separated by folders on my network share.

ex:
computer/D/TV/24

I have made an advancedsettings.xml file and have placed it in /C/UserData/ with the following info:

<advancedsettings>
<tvshowmatching>
<regexp>.*[Ss]([0-9]*).*[Ee]([0-9]*).*</regexp> % *.s01.*e01.*
<regexp>\[[Ss]([0-9]*)\]_\[[Ee]([0-9]*)[^\\/]*</regexp>
<regexp>[\._ \-]([0-9]*)x([0-9]*)[^\\/]*</regexp>
<regexp>[\._ \-][Ss]([0-9]*)[\.\-]?[Ee]([0-9]*)[^\\/]*</regexp>
<regexp>[\._ \-]([0-9]*)([0-9][0-9])[\._ \-][^\\/]*</regexp>
<regexp>[\\/][Ss]([0-9]+)[Ee]([0-9])+</regexp>
<regexp>[\._ \-][Ss]([0-9]+)[\.\-][Ee]([0-9]+)[^\\/]*</regexp>
<twopart>
<regexp>\[[Ss]([0-9]*)\]_\[[Ee][0-9][0-9]\-([0-9]*)\][^\\/]*</regexp>
<regexp>[\._ \-][Ss]([0-9]*)[^0-9]*[Ee]([0-9][0-9])[^\\/]*</regexp>
<regexp>[\._ \-][Ss]([0-9]*)[^0-9]*[Ee][0-9][0-9]\-([0-9]*)[^\\/]*</regexp>
<regexp>[\._ \-][0-9]*x[0-9]*[\._ \-]*([0-9]*)x([0-9]*)[^\\/]*</regexp>
</twopart>
</tvshowmatching>
</advancedsettings>

I have set that "TV" folder's SET CONTENT to TV Shows (TV.com)

all of the files I download are in the file format:

show.s01e01.res.source.ripgroup.avi

ex:
24.S06E19.HR.HDTV.XviD-CTU.avi

When I try TV Show information it just brings up the Enter TV Show Name window over and over. Scan for new content does something quickly (can't read it) then nothing.

What am I missing?! Thanks to whomever has the time to help.
Reply
#47
your advancedsettings.xml is broken - % is certainly no valid comment. that's one issue.

but why keep guessing? enable debug logging and see for yourself whats going on.
Reply
#48
Hi, could you help me with my Prob?

That's what my shows' format looks like:
smb:\\10.0.0.2\Xbox\Series\Family Guy\Season 4\01- Peter Peter Caviar Eater.avi

(smb:\\10.0.0.2\Xbox\Series is mounted in XBMC and this is where i try to build a database from)

my advancedsettings.xml looks like this:
Code:
<tvshowmatching append="yes">
    <regexp>Season[\._ ]([0-9]+)[\\/]([0-9]+)[^\\/]*</regexp>
    <regexp>Season([0-9]+)[\\/]([0-9]+)[^\\/]*</regexp>
</tvshowmatching>

It seems to find a few shows, but it only shows the shows' names, not the seasons/episodes.
Help?
Reply
#49
You are missing <advancedsettings>

Please, please indicate how we can make this more obvious in the online manual!
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
#50
jmarshall Wrote:You are missing <advancedsettings>

Please, please indicate how we can make this more obvious in the online manual!

Thanks, worked fine now.
BUT: It doesn't find two (imo quite important) shows:
M.A.S.H and Hogan's Heroes (thats what their dirs are called)
any ideas?
Reply
#51
Hey I'm new to XBMC, and am having difficulty with this. My file structure is:
.../Family Guy/Season 1/1x01 - Death Has A Shadow.avi

I have made an AdvancedSettings.xml file as follows according to the wiki:
Code:
<advancedsettings>
    <tvshowmatching>
    <regexp>([0-9]+)x([0-9]+)[^\\/]*</regexp>
    </tvshowmatching>
</advancedsettings>

If anyone could give me some guidance as to where I have gone wrong it would be greatly appreciated. Thanks in advance...
Reply
#52
What version of XBMC are you running? It needs to be one of the newer builds (8344 or better??). There was a problem in the older versions that didn't seem to work with the advanced settings entries.

Other than that, it seems ok to me (but that isn't saying much).

J_K_M_A_N
Reply
#53
that part is just fine.

now tell us the other stuff so we actually can help. such as a debug log of you doing a scan. version of xbmc and so on.
Reply
#54
OK, I have all my episodes getting info via TV.com except for the Colbert Report. I have looked for a good regexp and can't seem to find one for a daily program with the format:

name.month.day.year.avi

I am sure I am missing a post somewhere...

Thanks again!
Reply
#55
Easiest solution... rename your Colbert Report episodes to match the numbering on my site or tv.com. Then it's SxxExx.

http://www.thetvdb.com/?tab=series&id=79274&lid=7
Reply
#56
Hey thanks for the replies, I got it sorted I wasn't scanning them properly. Just out of interest, if I wanted to add another TV show with different file name structure do I just add another regexp line to tvshowmatching?
Reply
#57
that's the idea...
Reply
#58
Thanks for your help, sorry I'm just learning.
Reply
#59
Thanks szsori. It is pulling up Colbert, but I don't have a regexp for a;

SxxExxx (3 digits)

show. I added another [0-9], but it seems to only be catching the first 2 digits..

<advancedsettings>
<tvshowmatching append="yes">
<regexp>.*[Ss]([0-9]*).*[Ee]([0-9]*).*</regexp>
!!This one --> <regexp>.*[Ss]([0-9]*).*[Ee]([0-9][0-9]*).*</regexp>
<regexp>\[[Ss]([0-9]*)\]_\[[Ee]([0-9]*)[^\\/]*</regexp>
<regexp>[\._ \-]([0-9]*)x([0-9]*)[^\\/]*</regexp>
<regexp>[\._ \-][Ss]([0-9]*)[\.\-]?[Ee]([0-9]*)[^\\/]*</regexp>
<regexp>[\._ \-]([0-9]*)([0-9][0-9])[\._ \-][^\\/]*</regexp>
<regexp>[\\/][Ss]([0-9]+)[Ee]([0-9])+</regexp>
<regexp>[\._ \-][Ss]([0-9]+)[\.\-][Ee]([0-9]+)[^\\/]*</regexp>
<twopart>
<regexp>\[[Ss]([0-9]*)\]_\[[Ee][0-9][0-9]\-([0-9]*)\][^\\/]*</regexp>
<regexp>[\._ \-][Ss]([0-9]*)[^0-9]*[Ee]([0-9][0-9])[^\\/]*</regexp>
<regexp>[\._ \-][Ss]([0-9]*)[^0-9]*[Ee][0-9][0-9]\-([0-9]*)[^\\/]*</regexp>
<regexp>[\._ \-][0-9]*x[0-9]*[\._ \-]*([0-9]*)x([0-9]*)[^\\/]*</regexp>
</twopart>
</tvshowmatching>
</advancedsettings>

Thanks again
Reply
#60
NProszkow Wrote:<regexp>.*[Ss]([0-9]*).*[Ee]([0-9][0-9]*).*</regexp>

Hmm... I'm not sure how the scraper engine works, but the first regex will match the 3 digit episode as well, just ignoring the final digit. Spiff, perhaps you can shine some light on that? Perhaps it would be better to just change the first one to be:
Code:
<regexp>.*[Ss]([0-9]*).*[Ee]([0-9]{2,4}).*</regexp>
I'm not sure if the XBMC scraper can handle the {x,y} notation, but that would catch episode numbers with 2-4 digits. Alternatively, it could just be:
Code:
<regexp>.*[Ss]([0-9]*).*[Ee]([0-9][0-9]+).*</regexp>
That would catch at least 2 episode digits with no upper limit on the number of digits.
Also, is the [0-9]* in the season part a bug? Don't you want a + to require at least 1 digit?
Reply
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 17

Logout Mark Read Team Forum Stats Members Help
Regular Expressions1