Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
use your eyes,
it's in the signature of pretty much EVERYBODY who has posted in this thread, in particular mine and sho's. not to mention in the forum FAQ which you should have read before you posted, on xbmc.org, google +++++
Posts: 8
Joined: Aug 2007
Reputation:
0
Hey guys to answer some questions:
I'm using Windows XP SP3 and as for the build i'm using, well all i can find out that it was compiled 7/15/08.
As for filenaming convention, it's set up like:
-Television (Parent Folder)
--The Simpsons (Subfolder)
---Season 1 (Subfolder)
----1x01 - Simpsons Roasting on an Open Fire.avi (Season/Episode #/Episode name)
Posts: 8
Joined: Aug 2007
Reputation:
0
Also what is strange is "Whose Line Is It Anyway" Season 1, filename convention the same as every other shows, is the only one that was scanned into the Library properly.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Let's change this. My proposal is the following regexps (in all examples foo and/or bar may be empty)
1. foo[s01]_[e01]bar.ext
\[[Ss]([0-9]+)\]_\[[Ee]([0-9]+)\]?([^\\/]*)$
2. foo1x09bar.ext
([0-9]+)x([0-9]+)([^\\/]*)$
3. fooS01E02bar.ext, foos01.e01.ext, foos01_e01.ext etc.
[Ss]([0-9]+)[\._-]?[Ee]([0-9]+)([^\\/]*)$
4. foo.103bar.ext, foo_103bar.ext, foo 103bar.ext
[\._ -]([0-9]+)([0-9][0-9])([\._ -][^\\/]*)$
Note that number 4 is troublesome (possibility of matching numbers in a string) so we may have to reconsider that one?
Cheers,
Jonathan
Posts: 8
Joined: Aug 2007
Reputation:
0
Hmm...now i have run into another problem (maybe related?). It has only scanned in 12 shows instead of 23. They all show if i turn off library mode however. I have tried to rescan but the scraper finds nothing.
Posts: 8
Joined: Aug 2007
Reputation:
0
I was able to fix it. Instead of using "Scan for new content" on the parent folder "television" i right-clicked on one of the series subfolders and chose "Update library" and it seemed to find the other shows.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
jmarshall,
did you make those changes to the regexps already? i have changes waiting to commit which uses named subpatterns for tvshow matching. it gives the regexps more flexibility because parens can be used for grouping now which means these could be consolidated together. and i dont think we should include number four as it would match a four digit year in a filename.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
2008-08-07, 05:15
(This post was last modified: 2008-08-07, 05:18 by kraqh3d.)
two of the default regexps are these: (code version so they have double slashes)
[\\._ \\[-]([0-9]+)x([0-9]+)([^\\\\/]*)$
[\\._ -]([0-9]+)([0-9][0-9])([\\._ -][^\\\\/]*)$
they could just be combined together as this, and be filename beginning safe:
[\\\\/\\._ \\[-]+([0-9]+)x?([0-9][0-9])([\\._ -][^\\\\/]*)$
this should match any of the following filenames:
/101.avi
/[101].avi
/101.bar.avi
/1x01.avi
/1x01.bar.avi
/foo.101.avi
/foo.101.bar.avi
/foo.1x01.avi
/foo.1x01.bar.avi
/foo.[1x01].bar.avi