home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Electronic Program Guide
WebEPG
Problem with Z tag
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Khurram" data-source="post: 374968" data-attributes="member: 74579"><p>The <a href="http://www.regular-expressions.info/optional.html" target="_blank">Regex Tutorial - The Question Mark Makes the Preceding Token Optional</a> site is very useful. If I am not mistaken, the site's link is in the wiki also where you talk about the z-tag.</p><p></p><p>Lets say I have the following 2 pages:</p><p><a href="http://www.hbosouthasia.com/southasia/movie/2108" target="_blank">HBO South Asia | Hollow Man 2</a>. The HTML containing the information is</p><p>[CODE]</ul></p><p></div></p><p><dl class="info"></p><p> <dt>Starring</dt></p><p> <dd>Christian Slater, Peter Facinelli, Laura Regan</dd></p><p> <dt>Genre</dt></p><p> <dd>Action, Adventure</dd></p><p> <dt>Duration</dt></p><p> <dd>1 hr 22 min</dd></p><p></dl></p><p></div></p><p><div class="synopsis"></p><p> <p>some description.</p></p><p></div></p><p><div class="legal">[/CODE]</p><p>and</p><p><a href="http://www.hbosouthasia.com/southasia/movie/647" target="_blank">HBO South Asia | Single White Female</a>. The HTML containing the information is</p><p>[CODE]</ul></p><p></div></p><p><dl class="info"></p><p> <dt>Starring</dt></p><p> <dd>Jennifer Jason Leigh, Bridget Fonda, Steven Weber</dd></p><p> <dt>Directed</dt></p><p> <dd>Barbet Schroeder</dd></p><p> <dt>Genre</dt></p><p> <dd>Suspense, Thriller</dd></p><p> <dt>Duration</dt></p><p> <dd>1 hr 35 min</dd></p><p></dl></p><p></div></p><p><div class="synopsis"></p><p> <p>some description</p></p><p></div></p><p><div class="legal"></p><p>[/CODE]</p><p>My grabber template is</p><p>[CODE]<Template name="Details" start="Add to MyHBO</a></li>" end="<div class="legal">"></p><p> <SectionTemplate tags="UDP"></p><p> <TemplateText></p><p> </ul></p><p> </div></p><p> <dl class="info"></p><p> <z(><dt><*MATCH></dt></p><p> <dd><*VALUE></dd></z)?></p><p> <z(><dt><*MATCH></dt></p><p> <dd><*VALUE></dd></z)?></p><p> <dt><*MATCH></dt></p><p> <dd><*VALUE></dd></p><p> <dt><*MATCH></dt></p><p> <dd><*VALUE></dd></p><p> </dl></p><p> </div></p><p> <div class="<*MATCH>"></p><p> <p><*VALUE></p></p><p> </div></p><p> </TemplateText></p><p> <MatchList></p><p> <Match field="#ACTORS" match="Starring" /></p><p> <Match field="#DIRECTOR" match="Directed" /></p><p> <Match field="#GENRE" match="Genre" /></p><p> <Match field="#DURATION" match="Duration" /></p><p> <Match field="#DESCRIPTION" match="synopsis" /></p><p> </MatchList></p><p> </SectionTemplate></p><p></Template></p><p>[/CODE]</p><p>As far as I can tell, the page tagMap has 1 match with the template tagMap, but I get wierd behavior with the #DESCRIPTION token. If there is a match with 1 of the z-tags, #DESCRIPTION is ok. But if there are no matches with either of the z-tags, #DESCRIPTION is blank. I have tried debugging it but got the sqlite.dll error again even though sqlite.dll is in the proper folder (...mediaportal\WebEPG\WebEPG-xmltv\bin\Debug).</p></blockquote><p></p>
[QUOTE="Khurram, post: 374968, member: 74579"] The [url=http://www.regular-expressions.info/optional.html]Regex Tutorial - The Question Mark Makes the Preceding Token Optional[/url] site is very useful. If I am not mistaken, the site's link is in the wiki also where you talk about the z-tag. Lets say I have the following 2 pages: [url=http://www.hbosouthasia.com/southasia/movie/2108]HBO South Asia | Hollow Man 2[/url]. The HTML containing the information is [CODE]</ul> </div> <dl class="info"> <dt>Starring</dt> <dd>Christian Slater, Peter Facinelli, Laura Regan</dd> <dt>Genre</dt> <dd>Action, Adventure</dd> <dt>Duration</dt> <dd>1 hr 22 min</dd> </dl> </div> <div class="synopsis"> <p>some description.</p> </div> <div class="legal">[/CODE] and [url=http://www.hbosouthasia.com/southasia/movie/647]HBO South Asia | Single White Female[/url]. The HTML containing the information is [CODE]</ul> </div> <dl class="info"> <dt>Starring</dt> <dd>Jennifer Jason Leigh, Bridget Fonda, Steven Weber</dd> <dt>Directed</dt> <dd>Barbet Schroeder</dd> <dt>Genre</dt> <dd>Suspense, Thriller</dd> <dt>Duration</dt> <dd>1 hr 35 min</dd> </dl> </div> <div class="synopsis"> <p>some description</p> </div> <div class="legal"> [/CODE] My grabber template is [CODE]<Template name="Details" start="Add to MyHBO</a></li>" end="<div class="legal">"> <SectionTemplate tags="UDP"> <TemplateText> </ul> </div> <dl class="info"> <z(><dt><*MATCH></dt> <dd><*VALUE></dd></z)?> <z(><dt><*MATCH></dt> <dd><*VALUE></dd></z)?> <dt><*MATCH></dt> <dd><*VALUE></dd> <dt><*MATCH></dt> <dd><*VALUE></dd> </dl> </div> <div class="<*MATCH>"> <p><*VALUE></p> </div> </TemplateText> <MatchList> <Match field="#ACTORS" match="Starring" /> <Match field="#DIRECTOR" match="Directed" /> <Match field="#GENRE" match="Genre" /> <Match field="#DURATION" match="Duration" /> <Match field="#DESCRIPTION" match="synopsis" /> </MatchList> </SectionTemplate> </Template> [/CODE] As far as I can tell, the page tagMap has 1 match with the template tagMap, but I get wierd behavior with the #DESCRIPTION token. If there is a match with 1 of the z-tags, #DESCRIPTION is ok. But if there are no matches with either of the z-tags, #DESCRIPTION is blank. I have tried debugging it but got the sqlite.dll error again even though sqlite.dll is in the proper folder (...mediaportal\WebEPG\WebEPG-xmltv\bin\Debug). [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Electronic Program Guide
WebEPG
Problem with Z tag
Contact us
RSS
Top
Bottom