Author Topic: webget failing ???  (Read 7869 times)

Offline Shane

  • Senior Member
  • ****
  • Posts: 181
  • Vista Premium & Elgato EyeTV User
    • View Profile
    • shasam.net
webget failing ???
« on: February 22, 2005, 12:21:01 AM »
Just tried to pull data using my quickguide batch file, and webget is failing to pull the XML file down. Website is working fine using links from http://server.icetv.info/support/xmlguide_help2_t.html

Anyone else?

Regards,
Shane.
Shuttle SB83G5M (P4 630 nVidia 6600) running Vista Premium with:
Hauppauge Nova-T 500 MCE Tuner|Ice TV Guide|PIMP|Buffalo LinkStation HD-H160LAN & HD-HG300LAN|Xbox 360 MCE

Offline Russell at IceTV

  • Guru
  • *****
  • Posts: 444
    • View Profile
Re: webget failing ???
« Reply #1 on: February 22, 2005, 11:03:09 AM »
Hi Shane, thanks for reporting the problem.  It looks like in the process of improving something else, I forgot that the way webget was being used needs to be changed as well.  But it's a simple change...

The problem is that since webget is a command-line program, the ampersands (&) have to be escaped to avoid confusing the command window.  The batch files for getting XML data for MCE used the following command, which used the encoded value "%%26" in place of the ampersand:

     webget.exe http://server.icetv.info/cgi-bin2/xmlguide2.cgi?op=xmlguide%%26channels=1,2,3,4,5 -u <username> -p <password> -o icetv.xml

It turns out this isn't really the proper way to do this, so I've updated the batch files to use a normal ampersand, and escape it by enclosing the URL argument in double-quotes:

     webget.exe "http://server.icetv.info/cgi-bin2/xmlguide2.cgi?op=xmlguide&channels=1,2,3,4,5" -u <username> -p <password> -o icetv.xml

Note that only the URL argument is enclosed in quotes -- not the entire command.

So you can either modify your QuickGuideMelbourne.bat and QuickGuideSydney.bat files as above, or download the updated MCE zip file from the support page again.

Sorry for the confusion.  Let us know if you have any problems with it...

Russell

Offline Shane

  • Senior Member
  • ****
  • Posts: 181
  • Vista Premium & Elgato EyeTV User
    • View Profile
    • shasam.net
Re: webget failing ???
« Reply #2 on: February 22, 2005, 08:20:17 PM »
Thanks Russell, your changes have resolved the issue and all is working well.

Regards,
Shane.

Offline harbinger

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: webget failing ???
« Reply #3 on: April 17, 2005, 10:34:25 AM »
i was having this problem too but russels post has fixed one of the issues i am experiencing.

The problem i am having is the resulting xml file that webget outputs doesnt seem to have translated the linebreak code so the file is one long single line. It has printed the linbreak characters where the line breaks should be.

Hence when i import the xml into MCE it doesnt show up.

Have i missed a step that corrects this? (I would like to post and example but when i do, this text box translates the line breaks so it looks like the way its meant to! so i have attatched a sample. the original is rather large to post.)

Here is the command i use to grab the xml
Code: [Select]
webget "http://iceguide.icetv.com.au/cgi-bin/epg/iceguide.cgi?op=xmlguide&channels=9,10,6,7,8" -u ******** -p *******  -o xmltv.xml
Cheers
« Last Edit: January 01, 1970, 10:00:00 AM by harbinger »

Offline Russell at IceTV

  • Guru
  • *****
  • Posts: 444
    • View Profile
Re: webget failing ???
« Reply #4 on: April 17, 2005, 10:55:49 AM »
Hi harbinger,

I think the file format is ok actually...  What you're seeing is Unix format instead of Windows format, so each line ends with just a line-feed instead of a carriage-return-line-feed like Windows uses.  If you open it in Wordpad instead of Notepad, you'll see it displayed correctly.  I haven't heard of any problems loading it into MCE, so I'm wondering if there's some other problem somewhere.  Let us know a little more about what you've tried and what you're seeing, and I'm sure we can figure it out.

Thanks,
Russell

Offline harbinger

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: webget failing ???
« Reply #5 on: April 17, 2005, 09:26:37 PM »
i opened the xml file in wordpad and it displayed as you said, so i saved it in wordpad and it then displayed in notepad correctly.

However i still couldnt display any data in MCE.
It appears to import correctly but no listings are mapped to any channels automatically, so i tried to add them manually but there was no channel data to map.

Any ideas?

When i use dumper.exe to dump the channel data from MCE i am getting duplicates of channel numbers across different TV stations for some reason. eg
Code: [Select]
<channel>
    <name>SBS News</name>
    <channelID>SBS News</channelID>
    <virtualchannel>7</virtualchannel>
  </channel>
and
Code: [Select]
<channel>
    <name>7 Digital</name>
    <channelID>7 Digital</channelID>
    <virtualchannel>7</virtualchannel>
  </channel>

I dont know if this has anything to do with it. I had a scan through the registry to see if i could find the channel data to remove the duplicates but i couldnt remember where they were kept and using search didnt help. But im not sure i was looking for the right thing anyway.

Im a bit lost as what to do now. Tips?
Cheers

Offline BJReplay

  • Full Member
  • ***
  • Posts: 57
    • View Profile
Re: webget failing ???
« Reply #6 on: April 21, 2005, 07:10:29 PM »
You need to update ChannelInfo to use the channel ids specified in the xmltv file - e.g. Channel 2 (ABC) Melbourne is Channel ID 9 in the iceguide.

Therefore you would have
Code: [Select]
<channel>
    <name>ABCNews</name>
    <channelID>9</channelID>
    <virtualchannel>2</virtualchannel>
</channel>
for example.

HTH

BJ


Share via facebook Share via twitter

clip
webget doesn't return guide data

Started by dboutchard on XMLTV (General)

1 Replies
1436 Views
Last post February 13, 2015, 09:27:20 AM
by raymondjpg
xx
help with webget and xml data setup

Started by bluc on XMLTV (General)

1 Replies
1760 Views
Last post December 12, 2014, 09:38:11 PM
by Dave at IceTV
xx
Webget missing

Started by bravotango on General Discussions

4 Replies
2140 Views
Last post August 14, 2014, 03:27:45 PM
by Daniel Hall at IceTV
xx
Webget Problem

Started by Welt on ShowShifter

1 Replies
10021 Views
Last post April 30, 2005, 02:29:35 PM
by Daniel Hall at IceTV