You are here

Changing url_index for astro.com.my

3 posts / 0 new
Last post
bert
Offline
bert's picture
Donator
Joined: 4 years
Last seen: 3 years
Changing url_index for astro.com.my

Hello there, first of all Thanks Team for this magical tool.

I have a quick question I believe, and I would really appreciate if one of you could look into this.

In Malaysia/astro.com.my.ini, I notice the url_index is outdated and no longer reachable.
The current url_index:
url_index{url|http://ams-web-elb-378670955.ap-southeast-1.elb.amazonaws.com/ams/v3/getEvents?periodStart=|urldate|:00:00:00&periodEnd=|urldate|:23:59:59&channelId=|channel|}

Running WG gets me:

[  Info  ] (   1/5   ) ASTRO.COM.MY -- chan. (xmltv_id=TV 1) -- mode Force
[Error   ] Unable to update channel TV 1
[Critical] Generic syntax exception:
[Critical]    message: 
[Error   ] no index page data received from TV 1
[Error   ] unable to update channel, try again later
[  Info  ] Existing guide data restored!

By no index page data, I think that the URL is no longer valid. Thus I have manually inspected from their website and notice the correct one would be something like:

http://ams-api.astro.com.my/ams/v3/getEvents?periodStart=2019-06-25:00:00:00&periodEnd=2019-06-25:23:59:59&channelId=95

Looking at home similar the URL structure is with the current one. I have appended the URL_index to be
url_index{url|http://ams-api.astro.com.my/ams/v3/getEvents?periodStart=|urldate|:00:00:00&periodEnd=|urldate|:23:59:59&channelId=|channel|}

But I'm not sure if this is the correct way. No errors are returned but the following warnings appeared. Programs are not populated :/

[  Info  ] (   1/5   ) ASTRO.COM.MY -- chan. (xmltv_id=TV 1) -- mode Force
[Warning ] no robots data found
[Warning ] skipped robots check

EDIT:
Just tried to change the urldate-format to
urldate.format {datestring|yyyy-MM-dd}

No more warnings/errors message but nothing happened:

[  Info  ] (   1/5   ) ASTRO.COM.MY -- chan. (xmltv_id=TV 1) -- mode Force
[  Info  ] 
[  Debug ] 

Adding url(debug) gives me:

[  Info  ] (   1/5   ) ASTRO.COM.MY -- chan. (xmltv_id=TV 1) -- mode Force
[  Debug ] debugging information siteini; urlindex builder
[  Debug ] siteini entry :
[  Debug ] urldate format type: datestring, value: |yyyy-MM-dd
[  Debug ]    http://ams-api.astro.com.my/ams/v3/getEvents?periodStart=|urldate|:00:00:00&periodEnd=|urldate|:23:59:59&channelId=|channel
[  Debug ] url_index created:
[  Debug ]    http://ams-api.astro.com.my/ams/v3/getEvents?periodStart=2019-06-19:00:00:00&periodEnd=2019-06-19:23:59:59&channelId=95

and the url is accessible.

Is there anything that I should check? How can I further debug this?

Thanks in advance and look forward to your reply.

Bert

bert
Offline
bert's picture
Donator
Joined: 4 years
Last seen: 3 years

I am so stupid. I was looking at a different XML output. Turns out the ini worked after all. :-)

jack20
Offline
Donator
Joined: 5 years
Last seen: 2 years

Hello can you give current working ini, config files for astro please .

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