You are here

Update Vietnam EPG request

74 posts / 0 new
Last post
hongdat1106
Offline
Donator
Joined: 4 years
Last seen: 2 years
Blackbear199 wrote:

no idea what your doing wrong,works fine for me,bad user agent maybe in ur wg config?
u can get a updated one here(will show you what ur browser currently uses).
https://www.whatsmyua.info/
btw mytv has no epg.

Hi Blackbear199,

I updated my user Agent following your suggest but same problem was issued, I can't catch channels from ftpplay.net. Can you share me one epg file which you got from this site to reference?

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 30 min

i am afraid that ftplay will be a no go,i thought maybe some values in the request were static but it appears they are not as it dont work for me today either.so if someone wants to dig through 1000's lines of javascript to figure out how the st=
is calculated then go for it.

vtvcab is also a no go as a access token is needed and it only readable from the cookie which webgrab cannot do.

hoangthanhnt
Offline
Donator
Joined: 3 weeks
Last seen: 1 week

Hi
someone please update mytv.com.vn, the old data is no longer working.
https://mytv.com.vn/truyen-hinh?date=250117

Thanks

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 30 min

fixed.
read remarks in ini for timezone setting.

updated 17 jan 2025
ini only
channel list available in siteini.pack
no revision change.

Attachments: 
hoangthanhnt
Offline
Donator
Joined: 3 weeks
Last seen: 1 week
Blackbear199 wrote:

fixed.
read remarks in ini for timezone setting.

Thank you very much

hoangthanhnt
Offline
Donator
Joined: 3 weeks
Last seen: 1 week
Blackbear199 wrote:

fixed.
read remarks in ini for timezone setting.

I tried your file and I see all channels have the same epg. Please check again. Thanks

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 30 min

sorry.
edit the ini and on the site {xxx} line
remove |keepindexpage
i forgot to remove it,was there from the previous ini version

hoangthanhnt
Offline
Donator
Joined: 3 weeks
Last seen: 1 week
Blackbear199 wrote:

sorry.
edit the ini and on the site {xxx} line
remove |keepindexpage
i forgot to remove it,was there from the previous ini version

Thanks for the quick fix, however it only works fine with some channels, there are still many other channels with the same epg.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 30 min

delete your guide.xml
or
run all these channel with update f to force a complete overwrite(grab all new data)
looks fine to me.
ignore the times as it will look different as i am in diff timezone that you.

also...
files updated above
no revision change
removed all the code for subtitle and episode number info.
different channels use different patterns and impossible to cover them all.

Attachments: 
hoangthanhnt
Offline
Donator
Joined: 3 weeks
Last seen: 1 week
Blackbear199 wrote:

delete your guide.xml
or
run all these channel with update f to force a complete overwrite(grab all new data)
looks fine to me.
ignore the times as it will look different as i am in diff timezone that you.
also...
files updated above
no revision change
removed all the code for subtitle and episode number info.
different channels use different patterns and impossible to cover them all.

it worked fine. thanks

hoangthanhnt
Offline
Donator
Joined: 3 weeks
Last seen: 1 week
Blackbear199 wrote:

delete your guide.xml
or
run all these channel with update f to force a complete overwrite(grab all new data)
looks fine to me.
ignore the times as it will look different as i am in diff timezone that you.
also...
files updated above
no revision change
removed all the code for subtitle and episode number info.
different channels use different patterns and impossible to cover them all.

Hi Blackbear199,
Why do some channels have a “\t” character at the beginning of the title?

Attachments: 
Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 30 min

did u download and replace with the files above.
the siteini.pack has also been updated.

check ini u use and it should have these lines which remove these and others that may be there.
index_showsplit.modify {remove|\\r}
index_showsplit.modify {remove|\\n}
index_showsplit.modify {remove|\\t}

hoangthanhnt
Offline
Donator
Joined: 3 weeks
Last seen: 1 week
Blackbear199 wrote:

did u download and replace with the files above.
the siteini.pack has also been updated.
check ini u use and it should have these lines which remove these and others that may be there.
index_showsplit.modify {remove|\\r}
index_showsplit.modify {remove|\\n}
index_showsplit.modify {remove|\\t}

it works well.

By the way, can you update sctv.com.vn and vtvcab.vn ?
https://sctv.com.vn/lich-phat-song
https://www.vtvcab.vn/channel/epg
Thanks

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 30 min

heres sctv
i have vtcab.vn fixed also but it wont run on webgrab as its need a token it cannot get.
i use a php script to get the needed token.
if you have a webserver it can be used on it.
check remarks,timezone needs to be set correctly.

Attachments: 
Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 30 min

vtcab.vn is a simple site.
just use these.
it will bounce the request through my server to get the needed token.

Attachments: 
hoangthanhnt
Offline
Donator
Joined: 3 weeks
Last seen: 1 week
Blackbear199 wrote:

vtcab.vn is a simple site.
just use these.
it will bounce the request through my server to get the needed token.

I tried but it seems vtvcab.vn is not working.

[ Debug ]
[ Info ] ( 30/185 ) VTVCAB.VN -- chan. (xmltv_id=KBS World) -- mode Incremental
[Warning ] error downloading page: Response status code does not indicate success: 401 (Unauthorized).
[Warning ] error downloading page: Response status code does not indicate success: 401 (Unauthorized).
[Warning ] error downloading page: Response status code does not indicate success: 401 (Unauthorized).
[Error ] Unable to update channel KBS World
[Critical] Generic syntax exception:
[Critical] message:
[Error ] no index page data received from KBS World
[Error ] unable to update channel, try again later
[ Info ] No guide data to restore

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 30 min

ya, i see whats happening.
my server is getting the token but the epg is grabbed from the pc which is running webgrab.
this wont work.
the token and the epg need to be grabbed from the same ip/pc.

hoangthanhnt
Offline
Donator
Joined: 3 weeks
Last seen: 1 week
Blackbear199 wrote:

heres sctv
i have vtcab.vn fixed also but it wont run on webgrab as its need a token it cannot get.
i use a php script to get the needed token.
if you have a webserver it can be used on it.
check remarks,timezone needs to be set correctly.

there are gaps in time

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 30 min

the epg data has a stop time.if you dont want the gap disable this line by adding a * to the beginning.
*index_stop.scrub {single|"EndTime":"||",|",}

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 30 min

data showing the stop time and gap on sctv1

Attachments: 
hoangthanhnt
Offline
Donator
Joined: 3 weeks
Last seen: 1 week
Blackbear199 wrote:

ya, i see whats happening.
my server is getting the token but the epg is grabbed from the pc which is running webgrab.
this wont work.
the token and the epg need to be grabbed from the same ip/pc.

Can you send me php file? I will try on my device.
Thanks

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 30 min

edit the ini and on the url_index line change ip to your pc ip.
as i said it need to use the same ip/pc as webgrab.

my php files are in server root/php so i use
url_index {url|http://192.168.2.40:89/php/vtvcab.vn.php}

ur prob going to more like
url_index {url|http://127.0.0.1/vtvcab.vn.php}
specify the port if other than 80.

Attachments: 
hoangthanhnt
Offline
Donator
Joined: 3 weeks
Last seen: 1 week
Blackbear199 wrote:

edit the ini and on the url_index line change ip to your pc ip.
as i said it need to use the same ip/pc as webgrab.
my php files are in server root/php so i use
url_index {url|http://192.168.2.40:89/php/vtvcab.vn.php}
ur prob going to more like
url_index {url|http://127.0.0.1/vtvcab.vn.php}
specify the port if other than 80.

it works well. Thank you.

Pages

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