If have problems requested a correct date from this website:
http://ibb7-2.ibb.gov/tvschedule/index.cfm?type=Full&satellite=EU
For grabbing the schedule of Voice of America. The problem is defning the url_index statement
Can somebody help?
Thanks in advance
Willy
Willy,
This site uses POST to get its data.
next lines should do the trick:
The site_id in your config file should be EU.
Thanks Francis. I never seen to grasp this POST method.
The siteini is attached.
I use the following in the config file:
<channel update="i" site="VOA" site_id="EU" xmltv_id="VOA.com">Voice of America (VOA)</channel>
<channel update="i" site="VOA" site_id="340" xmltv_id="DOS.com">Voice of America (VOA)</channel>
Willy
Willy,
We see more and more sites that use POST to do the data transfers.
Thanks for the contribution.
I have added channels generation (because there where more channels/satellites available).
Also changed the maxday from 14 to 28. (there are even more days available).
And renamed the file to voanews.com.ini, to be inline with the site.
I have put this one on our official EPG channels page (under USA)
THANKS!
Francis
Sorry Francis, it seems that my post creates cnfusion.
I meant to say. I never seem to grasp this POST method. I have probles understanding it how it works.
Of course, I have seen other websites which use the method. But as I said i have a problem understanding how this works.
Willy
Francis,
Just something I found out now.
The website gives the schedule in UTC time. Now in order to acommodate the DST shift build in Webgrab++ I have to set something like this in the siteini:
*site {url=www.VOA.com|timezone=UTC+00:00|maxdays=14|cultureinfo=en|charset=UTF-8|titlematchfactor=50} * winter
site {url=www.VOA.com|timezone=UTC-01:00|maxdays=14|cultureinfo=en|charset=UTF-8|titlematchfactor=50} * summer
Is there anyway to have a fixed timezone (Wih DST the timezone shift automatically one hour)
Willy
Actually its not that difficult.
Normally GET is used. That means that the client (WG++) gets data from a specific resource (page/url).
A POST is the same, but during the request, you can put some arguments. (in this case requestdate='urldate'&type=Full&satellite='channel')
So when a site uses GET, you have (most of the times) 1 page for every day/channel
When a site uses POST, it will have only 1 page (most of the times). But for every special page you want (/day/channel), you can alter the POST request data.
So all the POST requests go to the same link, but with different request data.
So to difference in WG++, will only be the url_index
For GET, you will only have url_index
For POST, you must have url_index AND url_index.headers {method=POST} AND url_index.headers {postdata=}. Sometimes also url_index.headers {contenttype=} is defined, but I don't know if that is actually needed.
That's it.
Is my explanation understandable?
It is possible that you will get a wrong schedule if you grab around midnigth.
In order to resolve this add:
index_date.scrub {single (force)|Television Broadcast Schedule|<br>For:|</|<p}
To the Siteini
Willy
I used this wp+ with this site.ini for a long time. Then I had to move to a new apartment and no longer had access to satelite tv. Now I can receive voa again with TVHeadend via iptv. Unfortunatly the site.ini is no longer working. Could you please fix grabbing from the voas offical schedule site again? VoA has still great shows but unfortunatly most of their stations are not included in other epg sites.
Don't see any show on the site.
Here: https://www.voanews.com/tv/schedule/116/2018/12/11
This is the most accurate schedule: http://direct.voa24.news/english/portal/broadcast-schedule#