Cant get advanced settings working with dvd folders and bluray folders for tv show!

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Ghostdivision Offline
Fan
Posts: 622
Joined: Jan 2012
Reputation: 0
Post: #1
I could really use some help here, i am pulling my hair out trying to get advancedsettings naming working with dvd folders and bluray folders for tv shows.....individually the codes work great, its putting them together in the same advancedsetting file that both do not work then, i cant get them both to work, depending on how I set it up, one will work and the other wont.

If anyone could please tell me how to set this up so both work.

This is the dvd folder naming advanced setting.

http://forum.xbmc.org/showthread.php?tid...#pid766599

This is the bdmv folder naming i am using so it scrapes properly.

http://forum.xbmc.org/showthread.php?tid...pid1003826


This is what i have someone helped me with currently, i have tried a few things with the code below, with the current code, a bluray folder tv show will scan constantly, it wont end, scanning over and over and over. With other versions i created the bluray tv folders scrape fine, but then the dvd folders are not picked up or scrapped by xbmc....Its infuriating, My dvd and bluray folders folders are in this format "name of show"---->"S01E01E02" typically, occasionally i might have a season folder as well. "Name of show"---->Season--->S01E01E02

PHP Code:
<advancedsettings>
    <
tvshowmatching append="no">
        <
regexp>[Ss]([0-9]+)[Ee]([0-9]+)([^\\/]*)[\\/]BDMV[\\/]index.bdmv([\\/]*)</regexp>
            <
regexp>[Ss]([0-9]+)[Ee]([0-9]+)([^\\/]*)[\\/]VIDEO_TS[\\/]video_ts.ifo([\\/]*)</regexp>
        <
regexp>[Ss]([0-9]+)[Ee]([0-9]+)([^\\/]*)[\.][mkv avi m2ts]</regexp>    
  <
regexp>\[[Ss]([0-9]+)\]_\[[Ee]([0-9]+)\]?([^\\/]*)(?:(?:[\\/]video_ts)[\\/]video_ts.ifo)?</regexp>
  <
regexp>[\.\[\-\\/]([0-9]+)x([0-9]+)([^\\/]*)(?:(?:[\\/]video_ts)[\\/]video_ts.ifo)?</regexp>
  <
regexp>[Ss]([0-9]+)[\.\-]?[Ee]([0-9]+)([^\\/]*)(?:(?:[\\/]video_ts)[\\/]video_ts.ifo)?</regexp>
  <
regexp>[\.\-\\/]([0-9]+)([0-9][0-9])([\.\-][^\\/]*)(?:(?:[\\/]video_ts)[\\/]video_ts.ifo)?</regexp>
</
tvshowmatching>
</
advancedsettings

Also before anyone suggests i convert to iso or something, I have 14 tb library in folders. I do not want to convert them.Dvd folders and bluray folders are official structures for bluray and dvd so it should be possible to get them both to scrape properly in xbmc.

I appreciate any help in advance. I should also mention if i use the code for dvd folders or bluray folders for tv shows alone (one or the other)....it works, its only putting them together its not working.
(This post was last modified: 2012-07-18 01:02 by Ghostdivision.)
find quote
kricker Offline
Team-XBMC QA Specialist
Posts: 3,307
Joined: Apr 2004
Reputation: 16
Location: Knoxville, TN
Post: #2
Can you give an actual screenshot of your file/folder structure? That would help me wrap my head around what you are doing.

Read this before using these builds.
XBMC win32 SVN builds
Changelog
find quote
Ghostdivision Offline
Fan
Posts: 622
Joined: Jan 2012
Reputation: 0
Post: #3
Thanks for the reply.


Well its just folders instead of files....


For dvd for instance

The wire---->Season 1-----> S01E01E02 (dvd folder)... This launches the dvd folder or disc with episode 1 and 2 on it.

Im not to sure how to explain it better in a screen shot, its just dvd folders and bluray folders, inside a dvd folder are files such as vob, ifo, ect... which are inside a dvd disc

Bluray is the same except inside are mt2s, jar, mpls, all the files that make up a bluray disc.

All im trying to do is getting tv folder structures to scrape properly using regexp for both dvd folders and bluray folders for tv shows. Its the exact same structure as anyone else except im using official folder structures, not single files, if you bought a dvd or bluray you would find these folders inside....

XBMC has incredibly hard time scrapping folder structure. However with the 2 links provided on their own xbmc scrapes them properly. The minute i add both bluray and dvd regexp for tv shows together it wont work. Using the regexp for dvd folder tv shows provided in the 1st link by itself scrapes dvd folders fine,same with the 2nd link which provides the regexp for xbmc to scrape bluray folder tv shows. However put these two together in one advancedsetting.xml and it wont work. Depending on how i setup advancedsettings either the bluray folder for tv shows just keep scanning, and scanning forever, or if i setup the advancedsettings different, bluray folder for tv shows scrape fine, but dvd folders wont scrape at all.


If i use each regexp by itself or one or the other it works.

I hope this is clear, im guessing unless you use bluray folders or dvd folders you might not be able to help or understand what I am talking about or be able to test this. The two links i provided do provide some background to the issue, and do contain the complete solutions. Putting these solutions together into one advancedsetting file however, does not work properly. On their own they do each work individually.

The regexp for dvd folders, or the 2nd part of the regexp in my first post is actually just a copy and paste from the xbmc wiki for dvd folder naming for tv shows.
(This post was last modified: 2012-07-19 07:13 by Ghostdivision.)
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #4
Seems to me that one of them is hitting when it shouldn't in that case. The debug log tells you which is being hit, right?

You should be able to repro with just a single show and a couple of subfolders for episodes.

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: badge.gif]
find quote
Ghostdivision Offline
Fan
Posts: 622
Joined: Jan 2012
Reputation: 0
Post: #5
Hello thank you for the reply.

Not sure what you mean hitting. With the above advancedsetting i posted in post 1 the dvd folder structure is being scrapped properly. BDMV folders for tv shows just continue to scrape.

Using this method bdmv tv show folders scrape properly and dont constantly repeat, but dvd folders are not scraped or recognized at all. If this is not what you were asking I apologize and will follow up accordingly.

PHP Code:
<advancedsettings>
    <
tvshowmatching append="no">
        <
regexp>[Ss]([0-9]+)[Ee]([0-9]+)([^\\/]*)[\\/]BDMV[\\/]index.bdmv([\\/]*)</regexp>
            <
regexp>[Ss]([0-9]+)[Ee]([0-9]+)([^\\/]*)[\\/]VIDEO_TS[\\/]video_ts.ifo([\\/]*)</regexp>
        <
regexp>[Ss]([0-9]+)[Ee]([0-9]+)([^\\/]*)[\.][mkv avi m2ts]</regexp>    
    </
tvshowmatching>
<
tvshowmatching append="no">
  <
regexp>\[[Ss]([0-9]+)\]_\[[Ee]([0-9]+)\]?([^\\/]*)(?:(?:[\\/]video_ts)[\\/]video_ts.ifo)?</regexp>
  <
regexp>[\.\[\-\\/]([0-9]+)x([0-9]+)([^\\/]*)(?:(?:[\\/]video_ts)[\\/]video_ts.ifo)?</regexp>
  <
regexp>[Ss]([0-9]+)[\.\-]?[Ee]([0-9]+)([^\\/]*)(?:(?:[\\/]video_ts)[\\/]video_ts.ifo)?</regexp>
  <
regexp>[\.\-\\/]([0-9]+)([0-9][0-9])([\.\-][^\\/]*)(?:(?:[\\/]video_ts)[\\/]video_ts.ifo)?</regexp>
</
tvshowmatching>
</
advancedsettings
find quote
Ghostdivision Offline
Fan
Posts: 622
Joined: Jan 2012
Reputation: 0
Post: #6
Here is the debug log using the original advancedsetting.xml posted in the 1st post. It seems to be pointing to the dvd regexp, yet with that advanced setting, dvd scrape fine, but not bluray. The error is occuring on bdmv tv shows, and the debug log is blaming the dvd regexp.


23:11:28 T:3692 NOTICE: -->Python Interpreter Initialized<--
23:12:16 T:8188 NOTICE: VideoInfoScanner: Starting scan ..
23:12:19 T:8188 ERROR: PCRE: range out of order in character class. Compilation failed at offset 6 in expression '[._ [-/]([0-9]+)x([0-9]+)([^/]*)(?Sad?:[/]video_ts)[/]video_ts.ifo)?'

If i remove this line, same thing, except the debug log just says starting scan, and bdmv tv shows scan continuously.
(This post was last modified: 2012-07-20 07:20 by Ghostdivision.)
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #7
Do you want [._ -/] instead (note no extra [ )

Also you want only one <tvshowmatching> block ofc.

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: badge.gif]
find quote
Ghostdivision Offline
Fan
Posts: 622
Joined: Jan 2012
Reputation: 0
Post: #8
I dont know, all i know is each regexp works on its own....


I tried this line instead, made no difference...


00:15:09 T:4760 ERROR: PCRE: range out of order in character class. Compilation failed at offset 4 in expression '[._-/]([0-9]+)x([0-9]+)([^/]*)(?Sad?:[/]video_ts)[/]video_ts.ifo)?'


That line btw im pretty sure is from xbmc wiki on dvd folder naming for tv shows.
(This post was last modified: 2012-07-21 08:16 by Ghostdivision.)
find quote