You are here

Fox Sports Asia ini

22 posts / 0 new
Last post
jksmurf
Offline
jksmurf's picture
Donator
Joined: 11 years
Last seen: 2 years
Fox Sports Asia ini

Hi

User of WebGrab+ for a few years, was hoping to get help with a new ini for http://tv.foxsportsasia.com/ as I think it would be a good addition to SiteIni.Pack\International, as it spans 3 channels over 17 Countries (I live in Hong Kong). As no current ini exists I don't think uploading the required files will help, but let me know what I can assist with to help make one.

Rugby World Cup starts this week so EPG for recording in NextPVR would be really appreciated!

Thanks

Kristian

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 12 years
Last seen: 8 months
Is the support helpful?
support us

Will see what we can do.

Do you know if the shows are the same for the different locations? Or is it just the time of the show that is changed?

If you could find that out?

jksmurf
Offline
jksmurf's picture
Donator
Joined: 11 years
Last seen: 2 years

Cheers Francis, much appreciated.

Quite a few are the same but there are differences in the same time zone.

See attached e.g. between Malaysia and the Philippines.

UTC+08 

East Asia
 China (Mainland) - China Standard Time (Beijing Time)
 Hong Kong - Hong Kong Time (Hong Kong Standard Time)
 Macau - Macao Time (Macao Standard Time)
 Taiwan - National Standard Time
Southeast Asia
 Philippines - Philippine Standard Time
 Brunei - Brunei Darussalam Standard Time
 Malaysia - Malaysia Standard Time
 Singapore - Singapore Standard Time
 Indonesia (Central areas) - Indonesia Central Time

 

Attachments: 
francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 12 years
Last seen: 8 months
Is the support helpful?
support us

Think I foud a way.

This is just a very quick version. Not realy tested. Hope you can do that for me.

 

jksmurf
Offline
jksmurf's picture
Donator
Joined: 11 years
Last seen: 2 years

Thanks Francis,

Appreciated as always. I loaded it up and ran it using the attached, tried initially to change Singapore to Hong Kong, but that failed.

Put it back to Singapore, seemed to work really, thanks! see attached. Change of country, the log suggests just use Hongkong for UTS +08:00, would that be correct? It seems to work (run) at least. I guess if both are UTC +08:00 then it doesn't really matter as long as WebGrab++.config.xml has the correct country entries?

    <channel update="i" site="tv.foxsportsasia.com" site_id="FSHK" xmltv_id="FOX SPORTSX">Fox SportsX</channel>
    <channel update="i" site="tv.foxsportsasia.com" site_id="SEN1" xmltv_id="FOX SPORTSX2">Fox SportsX2</channel>

Cheers again though, great work.

Will let you know if any other issues :-)

Kristian

[EDIT] I did find one issue - with your original Asia/Singapore setting the descriptions were downloaded (at least initially). Then with Hongkong, they were not; then when I checked Singapore again, but this time they were gone? I tried "f" as a forced update rather than incremental - didn't work?

 

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 12 years
Last seen: 8 months
Is the support helpful?
support us

The timezone should be correct.

Site states all times are in Singapore/Hong Kong times (both are the same: +08:00 no DST). So you don't need to change the timezone.

If you want that, just use "Asia/Hong_Kong", but this is not needed.

 

Could you test your second issue (missing descriptions) a little bit more? Just to see what works and what doesn't? Don't have much times so can't realy setup a big test to reproduce your issue.

jksmurf
Offline
jksmurf's picture
Donator
Joined: 11 years
Last seen: 2 years

Hi Francis

I played around with the ini and config.xml a bit changing the site name and the update modes i, s etc and kept getting the errors below.

I then deleted the xml created by WebGrab+ and it seemed to work again. Do you think it might have had issue trying to do an incremental update?

 

channel FOX SPORTS site -- TV.FOXSPORTSASIA.COM -- update mode smart
unable to update channel FOX SPORTS

System.NullReferenceException: Object reference not set to an instance of an object.
   at WebGrab.Program.UpdateChannel(String strIndex, ChannelToUpdate Chan, XmlTarget xTarget)
   at WebGrab.Program.Main(String[] args)

channel FOX SPORTS 2 site -- TV.FOXSPORTSASIA.COM -- update mode smart
unable to update channel FOX SPORTS 2

System.NullReferenceException: Object reference not set to an instance of an object.
   at WebGrab.Program.UpdateChannel(String strIndex, ChannelToUpdate Chan, XmlTarget xTarget)
   at WebGrab.Program.Main(String[] args)

jksmurf
Offline
jksmurf's picture
Donator
Joined: 11 years
Last seen: 2 years

Sitll working OK.

Maybe OK to upload to SiteIni Pack with an experimental caveat and let other folks try it.

k.

jksmurf
Offline
jksmurf's picture
Donator
Joined: 11 years
Last seen: 2 years

Hi Francis

I don't think this was added to the ini pack, but I am trying this now with Beta version - 56.23pre and it seems to have a few issues.

[Error   ] Unable to update channel FOX SPORTS
[Critical] Generic syntax exception:
[Critical]    message: 
[Error   ] Current culture: en-GB
[Error   ] time parsing error : String was not recognized as a valid DateTime.
[Error   ] nextstarttime time scrubbed : 
[Error   ] computer date/time format: 08/05/2016 14:33:37
[  Info  ] Existing guide data restored!
[  Debug ] 

and

  Info  ] (   1/6   ) TV.FOXSPORTSASIA.COM -- chan. (xmltv_id=FOX SPORTS 2) -- mode Force
[Warning ] no robots data found
[Warning ] skipped robots check
[Error   ] Unable to update channel FOX SPORTS 2
[Critical] See log file for details
[Critical] Exception.Message: The reference node is not a child of this node.
[Critical] Exception.StackTrace:    at System.Xml.XmlNode.InsertAfter(XmlNode newChild, XmlNode refChild)
   at WGconsole.XmlTarget.Insert(Show show)
   at WGconsole.Program.UpdateChannel(String strIndex, ChannelToUpdate Chan, XmlTarget xTarget)
   at WGconsole.Program.ConsoleApplication(String[] args)
[Warning ] Attempt to restore existing guide data failed! - no data to restore
[Warning ] Exception: System.ArgumentException: The reference node is not a child of this node.
   at System.Xml.XmlNode.InsertAfter(XmlNode newChild, XmlNode refChild)
   at WGconsole.XmlTarget.ReplaceChannel(String channelId, XmlDocument xdTv)
   at WGconsole.Program.ConsoleApplication(String[] args)
[  Debug ] 

 

 

Attached a couple of run logs, one with and one without deleting the original xml.

It worked (and still works) with the old WebGrab version 1.1.1.55/27

Any changes to the ini (above) needed to be made? Inis and Logs attached.

k.

 

jksmurf
Offline
jksmurf's picture
Donator
Joined: 11 years
Last seen: 2 years

Sorry to bump this but I am still struggling with it.

It works (with the old Webgrab) for the first day's data but then goes out of whack, leaving a 1 hour window of no show.

Looking at the source EPG, it seems that the next days data is there, but offset by 12 hours?

Any ideas appreciated.

Cheers

Kristian

jksmurf
Offline
jksmurf's picture
Donator
Joined: 11 years
Last seen: 2 years

Hi Blackbear199

First off, a big thank you! - these work to get the full schedules with no gaps, so that's a massive improvement for me. smiley

I used the old site ID Codes, as HK was indicated in those.

However there is still a time offset issue (which is not unique to Foxsports Asia, but also Setanta and Deutsche Welle, which leads me to think it is related to WebGrab+Plus (or possibly the EPG Viewer I use, although I don't think so as I also checked with EPG Viewer/Editor 1.4 from the Downlaods section of this site).

I tried with timezone=UTC and then I tried again updating the ini with timezone=UTC+08:00; no difference in my viewer, but oddly there IS a difference in the XML file. See both run details and logs attached. [WebGrab+Plus output before correction = NowBBWebGrab.xml and after correction is NowBBWebGrabOut.xml]

Using xmltv_time_correct.bat with a +0800 offset works an gives me the correct time in the viewer.
I use NPVR and usually if it correct in the XML it is correct in NPVR.

Thanks again and if you could shed any light on that timezone issue it would be great.

I can currently use it with xmltv_time_correct.bat though.

k.

jksmurf
Offline
jksmurf's picture
Donator
Joined: 11 years
Last seen: 2 years

Hi There

Foxsports Asia seems to have gone on the blink (not working) any longer.

The error is "[Error   ] no shows in indexpage!" ?

Thanks

Kristian

 

jksmurf
Offline
jksmurf's picture
Donator
Joined: 11 years
Last seen: 2 years

I think you are right :-)

I tried this to find the correct codes (I think they are correct). Will check times vs Programs.

Thanks!

Attachments: 
ian1095
Offline
Joined: 6 years
Last seen: 4 years

Hi I'm new to Webgrab Plus and still reading and learning.

So could you tell me please if this is still working ?

I get this in my log with no start stop times being added to the output file.

[  Info  ] ( 141/143 ) TV.FOXSPORTSASIA.COM -- chan. (xmltv_id=FOX Sports) -- mode Force
[Warning ] no robots data found
[Warning ] skipped robots check
[  Debug ]    skipped : fully overlapping show from 23/03/2018 00:00
[  Debug ]                                       to 23/03/2018 00:55
[  Debug ]    skipped : fully overlapping show from 24/03/2018 00:00
[  Debug ]                                       to 24/03/2018 00:25
[  Debug ]    skipped : fully overlapping show from 25/03/2018 00:00
[  Debug ]                                       to 25/03/2018 00:30
[  Debug ]    skipped : fully overlapping show from 26/03/2018 00:00
[  Debug ]                                       to 26/03/2018 01:00
[  Info  ]
[  Debug ]
[  Info  ] ( 142/143 ) TV.FOXSPORTSASIA.COM -- chan. (xmltv_id=FOX Sports 2) -- mode Force
[  Debug ]    skipped : fully overlapping show from 21/03/2018 00:00
[  Debug ]                                       to 21/03/2018 01:00
[  Debug ]    skipped : fully overlapping show from 23/03/2018 00:00
[  Debug ]                                       to 23/03/2018 01:00
[  Debug ]    skipped : fully overlapping show from 24/03/2018 00:00
[  Debug ]                                       to 24/03/2018 01:00
[  Debug ]    skipped : fully overlapping show from 25/03/2018 00:00
[  Debug ]                                       to 25/03/2018 01:00
[  Debug ]    skipped : fully overlapping show from 26/03/2018 00:00
[  Debug ]                                       to 26/03/2018 01:00
[  Info  ]
[  Info  ]    Summary for update of       FOX Sports 2
[  Info  ]      missing shows added       0
[  Info  ]      changed shows updated     0
[  Info  ]      new shows added           166
[  Info  ]      unchanged shows inspected 0
[  Info  ]      total after update        166

[  Debug ]
[  Info  ] ( 143/143 ) TV.FOXSPORTSASIA.COM -- chan. (xmltv_id=FOX Sports 3) -- mode Force
[  Debug ]    skipped : fully overlapping show from 21/03/2018 00:00
[  Debug ]                                       to 21/03/2018 01:00
[  Debug ]    skipped : fully overlapping show from 22/03/2018 00:00
[  Debug ]                                       to 22/03/2018 01:00
[  Debug ]    skipped : fully overlapping show from 23/03/2018 00:00
[  Debug ]                                       to 23/03/2018 01:00
[  Debug ]    skipped : fully overlapping show from 24/03/2018 00:00
[  Debug ]                                       to 24/03/2018 01:00
[  Debug ]    skipped : fully overlapping show from 25/03/2018 00:00
[  Debug ]                                       to 25/03/2018 03:00
[  Info  ]
[  Debug ]
[  Debug ] 23633 shows in 143 channels
[  Debug ] 0 updated shows
[  Debug ] 23633 new shows added

 

With only this being added to the output file

  <channel id="FOX Sports">
    <display-name lang="en">FOX Sports</display-name>
    <url>http://www.tv.foxsportsasia.com</url>
  </channel>
  <channel id="FOX Sports 2">
    <display-name lang="en">FOX Sports 2</display-name>
    <url>http://www.tv.foxsportsasia.com</url>
  </channel>
  <channel id="FOX Sports 3">
    <display-name lang="en">FOX Sports 3</display-name>
    <url>http://www.tv.foxsportsasia.com</url>

These are the Id's I've selected, which I believe are Hong Kong

  <channel update="i" site="tv.foxsportsasia.com" site_id="ESE1" xmltv_id="FOX Sports">FOX Sports</channel>
  <channel update="i" site="tv.foxsportsasia.com" site_id="F2E1" xmltv_id="FOX Sports 2">FOX Sports 2</channel>
  <channel update="i" site="tv.foxsportsasia.com" site_id="FM31" xmltv_id="FOX Sports 3">FOX Sports 3</channel>

Thanks in advance.

Ian.

EDIT: I've sorted it.

 

ian1095
Offline
Joined: 6 years
Last seen: 4 years

Im not really sure. I changed the offset to UTC and it then worked, could be coincidence though.

The times are wrong though, from many of the used sites, so I've written a simple python file to which any offending channels can be easily added , to adjust the offset from cron after the output file is created like so. It only takes a second or so to do its job.

try:
    print 'Adjusting Time Offset for Channels Please Wait....'
    with open('/var/www/html/guide.xml', 'w') as outfile, open('/var/www/html/guide1.xml', 'r') as infile:
        for line in infile:
            if 'Fox Soccer Plus HDTV 24/7 (FSPLUS)'in line and '+0000' in line:
                line = line.replace('+0000','-0500')
            if 'Investigation Discovery HDTV (IDHD)'in line and '+0000' in line:
                line = line.replace('+0000','-0500')
            if 'MGM HDTV (MGMHD)'in line and '+0000' in line:
                line = line.replace('+0000','-0500')
                 

            #print line
            outfile.write(line)
except:
    print  'Error Adjusting offset'
    pass

The above example is for EPG from tv.com but the principle will work on any site. I think tv.foxsportsasia.com is +0800 isnt it ?  I've just not had time to experiment yet.

jksmurf
Offline
jksmurf's picture
Donator
Joined: 11 years
Last seen: 2 years

Holy cow. I was interested to update my ini but I think I will need to wait.

k.

ian1095
Offline
Joined: 6 years
Last seen: 4 years

Thanks Blackbear for the detailed description of the problem.

Loads to play with and try there and as you say the offset is currently 4 hours. However it will go back to 5 hours again on Sunday once the UK clocks go forward in line with the US/CA clocks, which went forward a couple of weeks ago. Fortunately, this problem does not occur when the clocks go back as the UK and US/CA go back on the same date.

Just for info, I'm first running Webgrab from Crond, then after thats finished Crond is then running my Offset.py that I've written, to correct any time issues, and then running a .sh file to convert my resulting guide.xml into a guide.xml.gz which CrossEPG used on Enigma2 understands, and then importing the final EPG from Tvheadend via CrossEPG to my Enigma2 box. Any new channels added are done so by running a python channel updater on the box, which in turn runs another python file to add specific sref's to my Enigma2 Bouquets. Eventually I shall do way with all the separate files and add everything to the run.sh commands that start Webgrab, so everything is done by that file alone.

It sounds complicated, but it really isnt and after Webgrab has done its job ( about and hour ) the rest is done in less than 5 seconds.

Next on my agenda is to try to get Bein Sports 11 and 12 working with Webgrab and also Directv too, which is currently complaining about headers.

I would like to get Directv sorted, because yo.tv cannot be relied upon. Sometimes the loaded channel id's that are obtained using Firefox element inspector are just wrong lol

I know that Webgrab is supposed to make this part easier for users, by uncommenting the lines at the bottom of the ini and running a dummy channel line, however, to date I've not managed to get this to work. not with yo.tv anyway. In my defence on this though I only started to use Webgrab about 2 weeks ago and theres loads to take in and digest.

EDIT: Directv sorted after installing the lastest mono

I'm still struggling generating an up to date Directv chanels.xml though lol Can anyone please help with this ?

ian1095
Offline
Joined: 6 years
Last seen: 4 years

Is this still valid ?

Jan van Straaten , 26/10/2015

How to create a localised channellist file for directv.com and create the necessary cookie file to grab data from local channels

Notice! The following procedure might not work with IE. We experienced problems with it which is caused by the fact that this site provides cookies in a non standard format. IE and Firefox both have problems while exporting these cookies. For firefox we were able to solve these problems with a update op WG++. (1.1.1/55.6)

1. In your browser goto https://www.directv.com/guide?lpos=Header:1
2. Enter your zip code eg 94102 for San Francisco or 60601 for Chicago, eventually enter County if asked.
3. Wait for the webpage to complete.
4. Export the cookies to a file named directv.com.cookies.txt in the same folder as the config file. Follow the instructions as in http://webgrabplus.com/documentation/configuration/cookie
5. Open directv.com.ini . Near the bottom is the section that creates channelist files
    Enable the lines there by removing the first *
6. Add one dummy channel in your config
    <channel update="i" site="directv.com" site_id="" xmltv_id="dummy">dummy</channel>
7. run wg++
8. If all is well you have created a channellist file for your location
    directv.com.channels.xml
9. Revert the actions of 5.

Notice:  you will need the cookie file created in 4 also to grab guide data from these local channels.

    Done
    

Because I just get an error about an index not being able to be obtained from dummy

ian1095
Offline
Joined: 6 years
Last seen: 4 years

Yes a channels.xml is created but this is all it contains.

<?xml version="1.0" encoding="UTF-8"?>
<site generator-info-name="WebGrab+Plus/w MDB &amp; REX Postprocess -- version  V2.1 -- Jan van Straaten" site="directv.com">
  <channels>
    <channel update="i" site="directv.com" site_id="#_" xmltv_id=" ()"> ()</channel>
    <channel update="i" site="directv.com" site_id="#" xmltv_id="">
    </channel>
  </channels>

</site>

I'm sure I'm missing something really silly here in trying to create this lol

 

EDIT: Finally !!!

God loves a trier lol, I have the new Directv channels.xml now hehehe

jksmurf
Offline
jksmurf's picture
Donator
Joined: 11 years
Last seen: 2 years

I'm a bit confused by all teh above, way over my head.

Is there an updated ini or xml I need to get hold to make FoxSports Work better?

Hi Ian - are you in HK? You seem to be a bit of propellor-head with this stuff (no offense :-))

I am still using TVxB (a wonderful little program that works on html but little else) to strip out stuff from the TVB Pearl website) but if you get time, maybe you could help me out by having a go at finishing my feeble attempts at getting TVB Pearl from this site https://www.mytvsuper.com/en/epg

Here is the link in the forum to my attempts thus far - I did try the latest suggestions but gave up (sorry Blackbear) http://www.webgrabplus.com/content/tvb-pearl-mytvsupercom ?

Cheers

k.

 

ian1095
Offline
Joined: 6 years
Last seen: 4 years

Nah I'm from England.

I dont know what a propellor-head is though lol

Ian.

jksmurf
Offline
jksmurf's picture
Donator
Joined: 11 years
Last seen: 2 years
ian1095 wrote:

Nah I'm from England.

I dont know what a propellor-head is though lol

Ian.

Ah; OK. I'm a Kiwi living in HK, was hoping you'd be able to develop some of the EPG stuff we have here if you lived here.  Never mind.

I'm sure you have worked out what a propellor head is by now :-).

k.

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl