New issues with tvtoday.de fixed + Channel merging (1 Viewer)

Hawkeye

Portal Pro
January 29, 2005
530
97
Halle (Saale)
Home Country
Germany Germany
Hi James,

I've got new issues with the tvtoday.de grabber:
First of all: they changed the detail-view (a hyperlink was added).

Then I discoverd that not the whole program was grabbed. At first I thought that the data is not available. But after some research I found out that not all data is shown on one page if it doesn't fit: for example try this link. You will find out that the program stops at 19:55. The rest is on the next page - I found out that the parameter offset is responsible for which page is shown. So I used [PAGE_OFFSET] to fix this. But not all channels have two pages...

I've attached the new fixed grabber file.

Now I've got a question regarding the merging of channels: How should I set the time?
Here are two ways how I tried it:
Code:
  <section name="MergeChannels">
    <entry name="Count">1</entry>
  </section>
  <section name="Merge1">
    <entry name="Channels">2</entry>
    <entry name="DisplayName">Ki.Ka + ZDF doku</entry>
    <entry name="Channel1">kika.de</entry>
    <entry name="Start1">06:00</entry>
    <entry name="End1">20:55</entry>
    <entry name="Channel2">zdfdoku@zdf.de</entry>
    <entry name="Start2">21:00</entry>
    <entry name="End2">05:45</entry>
  </section>
Code:
  <section name="MergeChannels">
    <entry name="Count">1</entry>
  </section>
  <section name="Merge1">
    <entry name="Channels">2</entry>
    <entry name="DisplayName">Ki.Ka + ZDF doku</entry>
    <entry name="Channel1">kika.de</entry>
    <entry name="Start1">06:00</entry>
    <entry name="End1">21:00</entry>
    <entry name="Channel2">zdfdoku@zdf.de</entry>
    <entry name="Start2">21:00</entry>
    <entry name="End2">06:00</entry>
  </section>

In both ways the show which starts on ZDF doku at 21:00 and the one which starts on Ki.Ka at 06:00 are lost...

:D for your efforts.
 

Hawkeye

Portal Pro
January 29, 2005
530
97
Halle (Saale)
Home Country
Germany Germany
As I wrote not all channels or better not all days on a channel have programs on more than one page - this caused the grabber to stop the search for this channel and throw an error:
Code:
2007-04-20 12:09:57.796875 [Info.][1]: WebEPG: Reading http://www.tvtoday.de/program2007?format=list&offset=1&date=21.04.2007&slotIndex=all&genre=&channel=ARTE POST: 
2007-04-20 12:09:59.765625 [Info.][1]: WebEPG: No Listings Found
2007-04-20 12:09:59.765625 [Info.][1]: WebEPG: ChannelId: arte-tv.com grabber error

So I changed the grabber file again: The parameter slotIndex can also be set to a number from 0 to 5. This indicates the time slot which is shown, e.g. 0 --> from 5 am to 2 pm. I now use the [PAGE_OFFSET] for this parameter and it works very well.
 

Hawkeye

Portal Pro
January 29, 2005
530
97
Halle (Saale)
Home Country
Germany Germany
Seems I was too quick posting that it would work very well - some channels don't have programs in every slot so the grabber stops again :mad:
 

Hawkeye

Portal Pro
January 29, 2005
530
97
Halle (Saale)
Home Country
Germany Germany
In Germany we've got a saying:
Alle guten Dinge sind drei. (Third time is a charm.)

So I think I finally got it: I got back to my first try and removed the search parameter (start and end page) and it works... (Yes I said that already before but this time I mean it... ;) )
 

thanatos

Portal Member
April 12, 2007
23
0
Munich
Home Country
Germany Germany
Good job!

Hawkeye,

your updatet version of the tvtoday grabber file made my day! :D
It works perfect - even the program details are now grabbed again!

In other words:
Danke - ich würd sagen, das hast Du perfekt hinbekommen! :D
 

James

Retired Team Member
  • Premium Supporter
  • May 6, 2005
    1,385
    67
    Switzerland
    Hawkeye thanks for all your work. I've added the grabber to SVN and made a small adjustment to the grabber and code to make it more efficient.

    <Search maxlistings="" /> can now be used for PAGE_OFFSET with this set to 30 it will keep grabbing pages until there are less then 30 items on the page. This stops it grabbing the next empty page like it does now.

    As for your problem with the merging. Inside the time range is defined as less/greater than the start/end but not equal to. So try this:
    Code:
    <section name="MergeChannels"> 
      <entry name="Count">1</entry> 
    </section> 
    <section name="Merge1"> 
      <entry name="Channels">2</entry>
      <entry name="DisplayName">Ki.Ka + ZDF doku</entry>
      <entry name="Channel1">kika.de</entry>
      <entry name="Start1">05:59</entry>
      <entry name="End1">21:00</entry>
      <entry name="Channel2">zdfdoku@zdf.de</entry>
      <entry name="Start2">20:59</entry> 
      <entry name="End2">06:00</entry>
    </section>
     

    Users who are viewing this thread

    Top Bottom