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
Attempting new grabber for ontv.dk
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="thomas.p" data-source="post: 416521" data-attributes="member: 88481"><p>Slightly incomprehensible has been achieved! Progression on the grabber is slow but steady - it helped when I found more documentation that I had not discovered the first time around.</p><p></p><p>At this point I have identified the page structure that I need to read each page. However this shows that "regular programs" and series/movies have very different page layouts. I have succesfully made a working template for each type (attatched below) but failed at integrating them over and over. Any help testing those two grabbers and identifying problems would be greatly appreciated!</p><p></p><p>The HTML structure I need to search looks like this:</p><p></p><p>[CODE]<div><table><tr><td><table><tr><td><h1><#TITLE></h1><p>kl. <#START> - <#END> p</p></p><p></p><p><!-- BEGIN SERIES/MOVIE --></p><p><z(></p><p><table><tr><td><p></p></td><td></td><td><p></p></td><td></td><td><p></p></td><td></td><td><p></p></td></tr></table><div></div><div></p><p></p><p><!-- BEGIN MAIN INFO --></p><p><z(></p><p><z(><h2></h2></z)?></p><p><z(><h3></h3></z)?></p><p><z(><p><#DESCRIPTION></p></z)?></p><p><!-- END MAIN INFO --></p><p></p><p><!-- BEGIN EXTRA INFO --></p><p><z(></p><p><z(><h3></h3></z)?></p><p><z(><p></p></z)?></z)?></p><p></z)?></p><p><!-- END EXTRA INFO --></p><p></z)?></p><p></p><p><p><#GENRE:Type: ,></p></p><p></div><div></div><div></div><div></div></p><p></z)?></p><p><!-- END SERIES/MOVIE --></p><p></p><p><!-- BEGIN REGULAR PROGRAMS --></p><p><z(></p><p><z(><h3></h3></z)?></p><p><z(><p><#DESCRIPTION></p></z)?></p><p><p><#GENRE:Type: ,></p></p><p></z)?></p><p><!-- END REGULAR PROGRAMS --></p><p></p><p></td>[/CODE]</p><p></p><p>There is a bunch of <div>, <table>/<tr>/<td>, <p> and <h> tags that can be navigated. Under some circumstances there are also a few <img> tags, but those seem too unreliable to be of use. I am guessing that this overall layout is rendered unusable in its entirety (hence the two different grabbers) by the many <z> tags I try to apply. It is an unfortunate consequence of my lack of knowledge about the regular expressions they put to use. So I could really use some guidance in the use of <z> tags and the arcane art of regular expressions in the context of grabber files.</p><p></p><p>Also I am still wondering whether a <Template> can make use of more than one <SectionTemplate> and how that is achieved. If that could work I would probably not have to delve too deeply into regular expressions to achieve a single working grabber file. But frankly speaking I am clueless whether such features exist, so if anybody reading this know anything about it, please speak up.</p><p></p><p>I am thrilled that people are even reading this thread, but I could really use some feedback on this project just about now. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p></blockquote><p></p>
[QUOTE="thomas.p, post: 416521, member: 88481"] Slightly incomprehensible has been achieved! Progression on the grabber is slow but steady - it helped when I found more documentation that I had not discovered the first time around. At this point I have identified the page structure that I need to read each page. However this shows that "regular programs" and series/movies have very different page layouts. I have succesfully made a working template for each type (attatched below) but failed at integrating them over and over. Any help testing those two grabbers and identifying problems would be greatly appreciated! The HTML structure I need to search looks like this: [CODE]<div><table><tr><td><table><tr><td><h1><#TITLE></h1><p>kl. <#START> - <#END> p</p> <!-- BEGIN SERIES/MOVIE --> <z(> <table><tr><td><p></p></td><td></td><td><p></p></td><td></td><td><p></p></td><td></td><td><p></p></td></tr></table><div></div><div> <!-- BEGIN MAIN INFO --> <z(> <z(><h2></h2></z)?> <z(><h3></h3></z)?> <z(><p><#DESCRIPTION></p></z)?> <!-- END MAIN INFO --> <!-- BEGIN EXTRA INFO --> <z(> <z(><h3></h3></z)?> <z(><p></p></z)?></z)?> </z)?> <!-- END EXTRA INFO --> </z)?> <p><#GENRE:Type: ,></p> </div><div></div><div></div><div></div> </z)?> <!-- END SERIES/MOVIE --> <!-- BEGIN REGULAR PROGRAMS --> <z(> <z(><h3></h3></z)?> <z(><p><#DESCRIPTION></p></z)?> <p><#GENRE:Type: ,></p> </z)?> <!-- END REGULAR PROGRAMS --> </td>[/CODE] There is a bunch of <div>, <table>/<tr>/<td>, <p> and <h> tags that can be navigated. Under some circumstances there are also a few <img> tags, but those seem too unreliable to be of use. I am guessing that this overall layout is rendered unusable in its entirety (hence the two different grabbers) by the many <z> tags I try to apply. It is an unfortunate consequence of my lack of knowledge about the regular expressions they put to use. So I could really use some guidance in the use of <z> tags and the arcane art of regular expressions in the context of grabber files. Also I am still wondering whether a <Template> can make use of more than one <SectionTemplate> and how that is achieved. If that could work I would probably not have to delve too deeply into regular expressions to achieve a single working grabber file. But frankly speaking I am clueless whether such features exist, so if anybody reading this know anything about it, please speak up. I am thrilled that people are even reading this thread, but I could really use some feedback on this project just about now. :thx: [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Electronic Program Guide
WebEPG
Attempting new grabber for ontv.dk
Contact us
RSS
Top
Bottom