TV Guide for Aussies (2 Viewers)

BKCH

MP Donator
  • Premium Supporter
  • July 25, 2005
    287
    12
    Sydney
    Home Country
    Hey Samuel337 I agree completely re: tvguide - I should have been clearer but that is what I meant by:

    One note here is that tvguide.org.au relies on people entering in guide data so we probably need to do the right thing...

    :)
     

    yankinoz

    Portal Member
    May 14, 2005
    16
    3
    Sydney Australia
    Home Country
    Australia Australia
    Callifo said:
    BRP was fixed to grab the new format now but there are a few changes needed to the data to get MP to read it. Still trying to work around it now.

    Hey Callifo - any luck? I've got updated BRP and TVxB building what seems to be a valid tvguide.xml, but MP doesn't seem to like it.

    Rob
     

    Marcusb

    Retired Team Member
  • Premium Supporter
  • February 16, 2005
    1,994
    29
    Melbourne
    I've been experimenting with BRP and TVxB and I am usually very good with manipulating xml files for MP's use, but I have to admit that this latest round has me stumped.

    I can manually adjust the BRP output so MP can use it but of course I would prefer an automatic solution.

    I have noticed that ABC has full program listings available in XML format so my preference would be to have TVxB combine the ABC XML and then fill the other channels with BRP data. This would give perfect guide for ABC channels and reasonable information for the rest.

    Has anyone had any luck with a set up like this?

    What is the best people have come up with so far?
     

    yankinoz

    Portal Member
    May 14, 2005
    16
    3
    Sydney Australia
    Home Country
    Australia Australia
    Marcusb said:
    I can manually adjust the BRP output so MP can use it but of course I would prefer an automatic solution.

    Marcusb: What needs to be done? I've got a script that is changing the channel names - I could probably change other things...

    Rob
     

    Marcusb

    Retired Team Member
  • Premium Supporter
  • February 16, 2005
    1,994
    29
    Melbourne
    the only way I can get MP to recognise the BRP input is to take an existing tvguide.xml and replace all the information manually.
    MP needs to have the channel information at the beginning of the XML file, whereas MCE uses a separate XML to define the channels.

    The example below shows what I have.
    I then take the BRP program information only and paste that into the middle.
    For some reason I couldn't get TVxB to merge the BRP XML (or any other XML for that reason)

    Code:
    <tv date="Tuesday, 15 November 2005">
        <channel id="Channel Nine Melbourne">
          <display-name>Channel Nine Melbourne</display-name>
        </channel>
        <channel id="ABC VIC">
          <display-name>ABC VIC</display-name>
        </channel>
        <channel id="ABC2">
          <display-name>ABC2</display-name>
        </channel>
        <channel id="Channel Seven Melbourne">
          <display-name>Channel Seven Melbourne</display-name>
        </channel>
        <channel id="Network TEN Melbourne">
          <display-name>Network TEN Melbourne</display-name>
        </channel>
        <channel id="SBS Melbourne">
          <display-name>SBS Melbourne</display-name>
        </channel>
        <channel id="SBS News">
          <display-name>SBS News</display-name>
        </channel>
    .
    .
    .
    .
    .
    .
    .
    .
     </tv>
     

    Callifo

    Retired Team Member
  • Premium Supporter
  • December 7, 2004
    1,439
    21
    Adelaide, Australia
    Home Country
    From what I found, TVXB cant fix the new file format. You need to add the channel information at the start. I wrote a java program to automate it for me and if you guys what to change that you can. Its as simple as changing the channel names inside the java program and then just run it.

    I just made a cmd file which does brp.exe->tvguide.java->copy tvguide.xml -> MP dir.
     

    voxmortis

    Portal Member
    May 19, 2005
    37
    0
    Sydney, Straya.
    I've decoded the ninemsn webpage and hosted it on my PC - using Abyss server. All automated.

    I use the old BRP, change TVHarvest config to point to my webpage, keep the pop-up URL the same, cos ninemsn haven't encoded the descriptions.

    Hey, presto - works like it used to. Pay TV is the most important part for me, so my batch script is using two diff configs for TVHarvest - one FTA, one pay, then BRP does its job... then I use TVxb to sort the resulting mess out (after top and tailing the 2 xml files to get rid of repeating lines).

    It's do-able, many flavours/ways of doing the same thing!

    No doubt someone from ninemsn reads this thread as well as the XPMCEAU threads!
     

    BKCH

    MP Donator
  • Premium Supporter
  • July 25, 2005
    287
    12
    Sydney
    Home Country
    Hi all - not sure how many people are interested in tvguide.org.au especially with voxmortis' great work getting around the ninemsn issue - but just in case there are some changes to the method for using the tvguide.org.au grabber - the author the grabber very kindly put in a test for tzset and changed a couple of this so the following is the new recipe:

    1. Download the grabber from: http://www.cse.unsw.edu.au/~willu/xmltv/tv_grab_au_tuhs.

    2. Download and install a python interpreter - I used the free ActiveState distribution found at: http://www.activestate.com/Products/ActivePythonFamily/?tn=1.

    3. Run tv_grab_au_tuhs.py --configure - I recommend using -c to override the config file location so the command would be:

    tv_grab_au_tuhs.py --configure -c <config file path\name>

    4. Edit the file that was created in the above step - In the obvious spot put your username and password for tvguide.org.au.

    You'll also need to add a line for each channel you want to grab - it should be pretty obvious but the *new* format is:
    <channel display="<MP channel name>" tuhs="<TVGuide.org.au channel name" />

    An interesting note here is that for the +2 channels you'll need to substitute "%2B" for the "+" in the <tvguide.org.au> - but then after the grab we need to search and replace those %2B's back to +'s.

    I have a config file for Sydney FTA + full Foxtel so PM me if you want a copy!

    5. Run: tv_grab_au_tuhs.py -c <config file path\name> -o rawguide.xml

    6. Download something like SED - I used http://www.cornerstonemag.com/sed/ - just download and unzip into the directory that has you grabber in it.

    7. After you've grabbed the data into rawguide.xml in step 5 run the following to subsitute the +'s back in:

    sed-3.59.exe s/"%2B"/+/ rawguide.xml > tvguide.xml

    8. Point MP at your new tvguide.xml, change your timezone offset (mine was 11 hours)

    9. Enjoy

    I found that every so often the grab times out (not very often but occasionally) so I use the following windows batch file to check for that and bring it all together and upload to my 2 media portals:

    echo off
    set E0=0

    :grab

    if %E0%==4 goto end
    if %E0%==3 set E0=4
    if %E0%==2 set E0=3
    if %E0%==1 set E0=2
    if %E0%==0 set E0=1

    tv_grab_au_tuhs.py -c config.baby -o rawguide.xml

    if %errorlevel% EQU 1 goto grab

    sed-3.59.exe s/"%2B"/+/ rawguide.xml > tvguide.xml

    :copy
    copy tvguide.xml z:\
    copy tvguide.xml y:\

    :end
    if %E0% EQU 4 echo The grab failed.
     

    BKCH

    MP Donator
  • Premium Supporter
  • July 25, 2005
    287
    12
    Sydney
    Home Country
    The script has now been updated so you don't need to worry about the + stuff - just put + in the config file and the script will do the rest (so don't worry about steps 6 or 7.
     

    Users who are viewing this thread

    Similar threads

    Update: Problem solved! The electronic program guides (tvguide.xml) have been successfully transferred to MediaPortal. The issue stemmed from the corruption of one or both of the mc2xml.dat and/or mc2xml.exe files, for an unknown reason. Consequently, even though the tvguide.xml file appeared to be updated, its content kept being an...
    Update: Problem solved! The electronic program guides (tvguide.xml) have been successfully transferred to MediaPortal. The issue...
    I was having a problem with the EPG on MP2 1.4.1 (although it used to run without any issues for a while). So I installed MP2 1.5...
    Replies
    8
    Views
    775
    Well, I had already recognized your problem, but I still wanted to point out the basic connections once again. Unfortunately, I don't have a fundamentally different solution for you, but with this approach you should achieve your goal. ;) The idea of first setting the current genre colors with the defines is certainly a good one, as...
    Well, I had already recognized your problem, but I still wanted to point out the basic connections once again. Unfortunately, I...
    Good afternoon, Does anyone know a way of referencing the genre colour of the currently selected item in the TV Guide. We are all...
    Replies
    4
    Views
    1K
    I used to use the grabber but a few years back it disappeared on FreeSat DVBS. That is when I changed to EPG Collector. The extra benefit is that it collects from the Sky platform so it will give EPG for all the FreeSat channels plus the unencrypted movie channels on the Sky platform. It also allows me to pick the channels dedicated...
    I used to use the grabber but a few years back it disappeared on FreeSat DVBS. That is when I changed to EPG Collector. The extra...
    Hi everyone, I hope you are all well My Mum's Mediaportal lost it's marbles thanks to Microsoft update, (even though I had update...
    Replies
    2
    Views
    1K
    Hi This is a general question about OnX. I have been using the TvWishList plugin for a while and have recently updated (update install) from MP 1.36 x86 to 1.37 x86 and found there seemed to be no Onx menu in the TV guide. I then configured the onx.presets.xml file like I would normally do with updates or fresh installs, but still...
    Hi This is a general question about OnX. I have been using the TvWishList plugin for a while and have recently updated (update...
    Hi This is a general question about OnX. I have been using the TvWishList plugin for a while and have recently updated (update...
    Replies
    0
    Views
    513
    How does the Timezone flag work? What input is it looking for? I went through the source code and all I saw was "America/New_York." I tried "America/Chicago" but still getting GMT times in the xmltv.xml file. Edit: Got this figured out. In the XmlTv plugin, you need to select "Apply timezone compensation when loading tvguide.xml" and...
    How does the Timezone flag work? What input is it looking for? I went through the source code and all I saw was "America/New_York."...
    NOT A MEDIAPORTAL ISSUE. Using MediaPortal1, Kodi for TV viewing. Today I noticed the TV Guide in Kodi stopped updating. A Google...
    Replies
    120
    Views
    34K
    Top Bottom