WebEPG: Radiotimes UK (1 Viewer)

gloomyandy

MP Donator
  • Premium Supporter
  • September 15, 2006
    424
    14
    64
    Home Country
    United Kingdom United Kingdom
    Hi James,
    Not sure if this is your problem or not but... With the latest svn the entries for the UK Channel 5 channels five.us and five.life are missing from the radio times xml file. On my system (which had entries for these channels in the WebEPG config), this caused the WebEPG grabber to abort when it hit the missing channel entries. Adding the following lines:
    <Channel id="five.tv" siteId="134" />
    <Channel id="us@five.tv" siteId="2008"/>
    <Channel id="life@five.tv" siteId="2007"/>
    to the file
    1-xmltv_radiotimes_com.xml
    fixed the problem for me.

    Andy
     

    gloomyandy

    MP Donator
  • Premium Supporter
  • September 15, 2006
    424
    14
    64
    Home Country
    United Kingdom United Kingdom
    Thanks. Should also have said that the new WebEPG seems to work fine for me after the above change. Nice job....

    Andy
     

    James

    Retired Team Member
  • Premium Supporter
  • May 6, 2005
    1,385
    67
    Switzerland
    Radiotimes has more data then I have been getting until now.

    Currently it gets:

    #TITLE~~~~~~~~~~~~~~~~#GENRE~#DESCRIPTION~~#DAY/#MONTH/~#START~#END~

    In between each ~ there is more data, that until now I have now got/support.

    I cannot remember the order anymore. Maybe you can look it up?

    /James
     

    gloomyandy

    MP Donator
  • Premium Supporter
  • September 15, 2006
    424
    14
    64
    Home Country
    United Kingdom United Kingdom
    Hi James,
    The Radiotimes data format used by xmltv would seem to be defined by the following lines of perl script! The first list gives the fields the loop defines which are binary (true/false) values.

    326 foreach (@fields) { s/^\s+//; s/\s+$//; undef $_ if not length }
    372 my ($title, $sub_title, $episode, $year, $director, $cast,
    373 $premiere, $film, $repeat, $subtitles, $widescreen,
    374 $new_series, $deaf_signed, $black_and_white, $star_rating,
    375 $certificate, $genre, $desc, $choice, $date, $start, $stop,
    376 $duration_mins) = @fields;
    377 foreach ($premiere, $film, $repeat, $subtitles, $widescreen,
    378 $new_series, $deaf_signed, $black_and_white, $choice) {
    379 die "true/false value not defined" if not defined;
    380 if ($_ eq 'true') { $_ = 1 }
    381 elsif ($_ eq 'false') { $_ = 0 }
    382 else { die "bad true/false value $_" }
    383 }
    Is this enough for you?

    Oh and looking at some actual data the episode field seems to be of the form n/m ie episode n of a set of m. But this field can also have extra data in it such as the episode title if this is the case they seem to be of the form:
    ~n/m - text~
    where text is the episode title. Hope this makes sense.


    I was going to try creating a new definition but a couple of things held me back....
    1. I'm not sure what # fields exist (like #GENRE etc.) is there a list?
    2. Not sure how to test it. When I run WepEPG by hand the XMLTV\TVGuide.xml that I get only seems to contain a list of channels not any program data. Is this data now loaded into the database directly? Is there some other trick I need to do to get program data into this file?

    Thanks

    Andy
     

    kaisersose

    Portal Member
    December 1, 2006
    20
    0
    dont know if this is the right place, hopefully it is. Anyways I have a dreambox 7000s sat receiver and plan to put mediaportal on a pc im getting in the next week. Theres a pc program called epgcenter

    http://www.autoreplying.com/epgcenter/index.htmdre

    which lets you download the epg, whether it be from radiotimes or bleb etc. It then maps the epg channel names with the actual dreambox channel names, and then allows you to setup timers/recordings on your dreambox from this program. It basically sends a http command in the proper format to the dreambox and the timer is added. Theres a german wiki here for the dreambox with the http command format:

    http://wiki.tuxbox.org/Ehttp_api_doku#liefert_die_TV_User-Bouquets_inklusive_Sender

    "
    http://dbox/addTimerEvent?type=regular&ref=' + channel + '&sday=' + sday + '&smonth=' + smonth + '&syear=' + syear + '&shour=' + shour + '&smin=' + smin + '&eday=' + eday + '&emonth=' + emonth + '&eyear=' + eyear + '&ehour=' + ehour + '&emin=' + emin + '&descr=' + descr + '&after_event=' + after_event + '&action=' + action;

    "

    There a guy who done it for xbmc with his mytv python plugin, which can be found here:
    http://www.xbmcscripts.com/index.php?option=com_docman&task=doc_download&Itemid=29&gid=138

    and it has the dreambox code. Im no coder but if anyone is and has a dreambox, it would be great if they could look at it. As it would be great to do it through mediaportal :)
     

    Users who are viewing this thread

    Top Bottom