| |||||||
| WebEPG everything related to WebEPG in here |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Portal Member Join Date: Dec 2006 Age: 29
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Country: | Hello, I want to develop my own grabber but I have some problem. The only documentation I found it's the "commented-grabber.xml" file. But I have some questions : - I want to use the tag [PAGE_OFFSET] in my URL site and to go from 1 to 5. If I read the documentation, I can use PageStart to start from 1 and not 0. But this don't work... Also, I don't find where i put the limit... - Here an exemple of the HTML code Code: <div class="horaire" style="width: 97px;"> 00H25</div>
<div class="thematique-34782" style="width: 97px;"> DOCUMENTAIRE</div>
<div class="info" style="height: 61px; width: 97px;"><p style="padding: 2px 3px;">
<a href="javascript:var retour=popupSimple('tpl72.htm&cha=239&thema=34782&DID=16591057', 'Inscription', 400, 584);" class="tt-blanc10">Photo de couv'</a>
</p>
</div>
<div class="duree" style="width: 97px;">25 min </div>
<div id="zoomEmission16591057" class="DetailEmission" onmouseout="MM_changeProp('zoomEmission16591057', '', 'style.visibility', 'hidden', 'DIV');">
<p style="padding: 2px;">
<span class="tt-noir10">PHOTO DE COUV'</span><br /><br />
De 00h25 à 00h50 <br /><br />
DOCUMENTAIRE - SOCIETE<br />
<br />
Rediffusion<br />
</p>
</div>
Code: <programme start="20070102002500" end="20070102005000" channel="discoveryrealtime.fr">
<title>Photo de couv'</title>
<category>Documentaire - Societe</category>
</programme>
Code: <SectionTemplate tags="TPA">
<TemplateText>
<span class="tt-noir10"><#TITLE></span><br /><br />
De<#START>à<#END><br/><br/>
<#GENRE><br />
</TemplateText>
</SectionTemplate>
Code: 2007-01-02 00:50:58.928256 [Info.][1]: WebEPG: ChannelId: discoveryrealtime.fr 2007-01-02 00:50:58.943881 [Debug][1]: WebEPG: Grab Start 00:50 02/01/2007 2007-01-02 00:50:58.990756 [Info.][1]: WebEPG: Reading http://www.canalsat.fr/index.php?tpl=217&DAY=02-01-07&cha=239&tra=0&multi=2 POST: 2007-01-02 00:51:00.662631 [Info.][1]: WebEPG: Listing Count 25 2007-01-02 00:51:00.678256 [Warn.][1]: WebEPG: Program Count (0) < Listing Count (25), possible template error 2007-01-02 00:51:00.678256 [Info.][1]: WebEPG: Finished I have also an other question, I want to get the description of the entry. But the description is in an athor page (a popup). I have the link before an for this exemple it's : tpl72.htm&cha=239&thema=34782&DID=16591057 It's possible to get the description from an other HTML page ? Thank's in advance and an happy new year for every body !!! |
| | |
| | #2 (permalink) |
| Portal Developer Join Date: May 2005 Location: Switzerland
Posts: 1,341
Thanks: 4
Thanked 55 Times in 34 Posts
| The "commented-grabber.xml" file is very out of date. So I've started to document it in the wiki: http://wiki.team-mediaportal.com/Med...omising_WebEPG |
| | |
| | #3 (permalink) | |
| Portal Member Join Date: Dec 2006 Age: 29
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Country: | Thank you for the link and the program WebEPG-Designer-v3. It's help me very much. I have a little problem, for each day the program is on 5 page : http://www.canalsat.fr/index.php?tpl...&tra=1&multi=2 http://www.canalsat.fr/index.php?tpl...&tra=2&multi=2 http://www.canalsat.fr/index.php?tpl...&tra=3&multi=2 http://www.canalsat.fr/index.php?tpl...&tra=4&multi=2 http://www.canalsat.fr/index.php?tpl...&tra=5&multi=2 So in the grabber i use : tra=[PAGE_OFFSET] and in the search tag, i put : startPage="1". Here is the log file : Quote:
I don't understand alo : WebEPG: Program Count (0) < Listing Count (8), possible template error. He find the good number of entry but he said : "Template error" ??? | |
| | |
| | #4 (permalink) |
| Portal Developer Join Date: May 2005 Location: Switzerland
Posts: 1,341
Thanks: 4
Thanked 55 Times in 34 Posts
| There is a endPage it just wasn't in the docs, but is now ![]() I added support for fixing the case correctly. I also made a config file for you which is now in the SVN. It only has one channel, so it would be great if you could add the rest and test it. The output looks like this: Code: <programme start="20070103232500" stop="20070104001500" channel="tf1.fr">
<title>Preuve à l'appui</title>
<category>Serie - Suspense</category>
</programme>
|
| | |
| | #5 (permalink) |
| Portal Member Join Date: Dec 2006 Age: 29
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Country: | Thank you, it's works better now. I'm waiting for the next SVN to test it. I have a question. I want to add <previously-shown /> in the XML file if there is the text "Rediffusion" in my HTML template. In the wiki I see the Tag <z> why regexp but i don't find any exemple of how to use it. Thank's in advance. |
| | |
| | #7 (permalink) |
| Portal Member Join Date: Dec 2006 Age: 29
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Country: | Ok, thank you it's work fine. To finish my grabber I need to get information from a popup, so I wan to use the Sublinks. In the HTML code, I have : HTML Code: <a href="javascript:var retour=popupSimple('tpl72.htm&cha=239&thema=34782&DID=16591057', 'Inscription', 400, 584);" class="tt-blanc10"> Photo de couv' </a> Code: <Sublinks> <Sublink search="popupSimple" template="Details"> </Sublink> </Sublinks> Code: 2007-01-04 22:13:26.140625 [Info.][1]: WebEPG: Reading http://www.canalsat.fr/index.php?tpl=217&DAY=04-01-2007&cha=239&tra=5&multi=2 POST: 2007-01-04 22:13:27.281250 [Info.][1]: WebEPG: Listing Count 6 2007-01-04 22:13:27.296875 [Info.][1]: WebEPG: Guide, Program Info: 20070104223500 / 20070104230000 - Naissance à domicile 2007-01-04 22:13:27.296875 [Info.][1]: WebEPG: SubLink Request http://www.canalsat.fr/index.php?tpl=217&DAY=04-01-2007&cha=239&tra=1&multi=2 POST: 2007-01-04 22:13:29.468750 [Warn.][1]: WebEPG: Getting sublinked data failed If it could help : My grabber : http://pastebin.team-mediaportal.com/11695 Last edited by DKreeK; 2007-01-04 at 21:32. |
| | |
| | #8 (permalink) |
| Portal Developer Join Date: May 2005 Location: Switzerland
Posts: 1,341
Thanks: 4
Thanked 55 Times in 34 Posts
| This should have worked, but there was a small bug in the code for Javascript sublinks. I have fixed this and made a few small changes to the template to improve the GENRE parsing. Its now in the SVN and should be ready to go ![]() |
| | |
| | #10 (permalink) |
| Portal Member Join Date: Dec 2006 Age: 29
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Country: | Hello James, The last version is here : http://pastebin.team-mediaportal.com/11767 I test it on all channel and it works for me, you can add it in the SVN. I think that french people will go to test it and if there need an update I will did it. |
| | |
![]() |
| Bookmarks |
| Tags |
| develop, grabber |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| NEW Italian EPG grabber, but need your HELP!! | koala04 | WebEPG | 24 | 2006-11-01 08:27 |
| Why is my WebEPG doing this? | TheMerovingian | WebEPG | 13 | 2006-07-10 20:59 |
| A problem creating spanish TDT grabber for WEBEPG | pegial | WebEPG | 7 | 2006-06-04 12:14 |
| o2 grabber not working with the latest builds? | spraycleaner | WebEPG | 1 | 2006-06-01 07:52 |
| HowTo: Building MediaPortal with #Develop | Schrauber | General Development (no feature request here!) | 14 | 2005-12-29 13:38 |