in

andy vt's tools & blog

automating lazy

Problem with todvrms parsing xml file 1.2.2.6

Last post 04-10-2012 6:43 AM by JohnGalt. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 03-22-2012 9:07 AM

    Problem with todvrms parsing xml file 1.2.2.6

    It appears that it really doesn't like the & sign that is in shows like Thomas the Tank Engine & Friends. (If you replace it with And there is no match). So then it fails to put the metadata in the file, however it continues anyhow. I would have thought it would have errored out so that a fail wouldn't have allowed it to continue in my script. Any suggestions on how to fix it (it appears to only be in the file name but again if I change the file name to have and instead of & it fails. Only way I figured was to replace & with & in the file name and then it works. Ugly but it works. Would be nice to have it convert that automatically somehow so that it won't break the XML file but I don't have to convert the file names. There are lots of shows with & in them....
  • 04-02-2012 2:09 PM In reply to

    • miles267
    • Top 50 Contributor
    • Joined on 10-27-2010
    • NW Arkansas

    Re: Problem with todvrms parsing xml file 1.2.2.6

    Hi John, I am currently still on 1.2.2.5 but have found the todvrms xml parsing to be fair at best.  seems 5/10 (or more), lookups performed against shows lited on thetvdb.com are rejected as unable to find series or more so unable to find episode.  I do not know how to access the early release of 1.2.2.6. 
  • 04-02-2012 7:51 PM In reply to

    Re: Problem with todvrms parsing xml file 1.2.2.6

    See my other post about the regex update for better matching.  It will improve it to pretty close to 100%.  There are some real oddballs that won't work and the & still will cause issues.  Otherwise it is perfect on all coming from easy tv etc.
  • 04-04-2012 4:29 PM In reply to

    • miles267
    • Top 50 Contributor
    • Joined on 10-27-2010
    • NW Arkansas

    Re: Problem with todvrms parsing xml file 1.2.2.6

    JohnGalt:
    See my other post about the regex update for better matching.  It will improve it to pretty close to 100%.  There are some real oddballs that won't work and the & still will cause issues.  Otherwise it is perfect on all coming from easy tv etc.

    Odd.  When I change my Extraction Regex line FROM:(?<series>.+)\.[s,S](?<season>\d+)[e,E](?<episodenbr>\d+)\.

     TO: (?.+?)[ \.-]+[ sS]*(?\d+)[eExX](?\d+).*

     As suggested in your earlier post, thetvdb.com never returns anything.  I've had to revert back to the original.

     What am I doing incorrectly?

     

  • 04-10-2012 6:43 AM In reply to

    Re: Problem with todvrms parsing xml file 1.2.2.6

    Sorry for the delay. Forums ate the < and >. I've ammended it so that it will display correctly. Be careful you get proper < and > instead of the HTML equivalents when you copy and paste. (?<series>.+?)[ \.-]+[ sS]*(?<season>\d+)[eExX](?<episodenbr>\d+).*
Page 1 of 1 (5 items)
@2008 andy vt
Powered by Community Server (Non-Commercial Edition), by Telligent Systems