You are here

Update Vietnam EPG request

91 posts / 0 new
Last post
hongdat1106
Offline
Donator
Joined: 5 years
Last seen: 3 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
Has donated long time ago
Joined: 10 years
Last seen: 4 months

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: 1 year
Last seen: 3 months

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
Has donated long time ago
Joined: 10 years
Last seen: 4 months

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: 1 year
Last seen: 3 months
Blackbear199 wrote:

fixed.
read remarks in ini for timezone setting.

Thank you very much

hoangthanhnt
Offline
Donator
Joined: 1 year
Last seen: 3 months
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
Has donated long time ago
Joined: 10 years
Last seen: 4 months

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: 1 year
Last seen: 3 months
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
Has donated long time ago
Joined: 10 years
Last seen: 4 months

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: 1 year
Last seen: 3 months
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: 1 year
Last seen: 3 months
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
Has donated long time ago
Joined: 10 years
Last seen: 4 months

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: 1 year
Last seen: 3 months
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
Has donated long time ago
Joined: 10 years
Last seen: 4 months

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
Has donated long time ago
Joined: 10 years
Last seen: 4 months

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: 1 year
Last seen: 3 months
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
Has donated long time ago
Joined: 10 years
Last seen: 4 months

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: 1 year
Last seen: 3 months
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
Has donated long time ago
Joined: 10 years
Last seen: 4 months

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
Has donated long time ago
Joined: 10 years
Last seen: 4 months

data showing the stop time and gap on sctv1

Attachments: 
hoangthanhnt
Offline
Donator
Joined: 1 year
Last seen: 3 months
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
Has donated long time ago
Joined: 10 years
Last seen: 4 months

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: 1 year
Last seen: 3 months
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.

hoangthanhnt
Offline
Donator
Joined: 1 year
Last seen: 3 months
Hi Blackbear199,
Currently vtvcab.vn has changed the structure of the EPG page, please help me update the way to get the EPG. Thanks

VTVcab - Truyền hình Cáp Việt Nam

Thanks

Blackbear199
Offline
Has donated long time ago
Joined: 10 years
Last seen: 4 months

files sent to mat8861 to update ini.pack

php not needed so u can delete those files.

 

hoangthanhnt
Offline
Donator
Joined: 1 year
Last seen: 3 months

Thank you

ppkhoa
Offline
Donator
Joined: 5 months
Last seen: 3 months

I'm getting HTTP Error 400 with VTVCab now (all channels):

VTVCAB.VN -- chan. (xmltv_id=Woman) -- mode Incremental
iiiiii
error downloading page: Response status code does not indicate success: 400 (Bad Request).
i
error downloading page: Response status code does not indicate success: 400 (Bad Request).
Unable to update channel Woman
Generic syntax exception:
   message:
no index page data received from Woman
unable to update channel, try again later

Also, SCTV now have SCTV4K channel, this can be added to channels.xml:

<channel update="i" site="sctv.com.vn" site_id="163" xmltv_id="SCTV4K">SCTV4K</channel>

Blackbear199
Offline
Has donated long time ago
Joined: 10 years
Last seen: 4 months

for vtcab.vn its the site.
they show they have upto 14 days epg but not all channels actually do.
for example i check vtv1 and vtv2.
they only have actual epg for today and tomorrow but if you request epg for anything beyond 5 days it returns error 400.
for now the best option is edit the ini and on the site line change maxdays=14 to maxday=5

for sctv run update mode c to create a new channel list.

 

 

hoangthanhnt
Offline
Donator
Joined: 1 year
Last seen: 3 months

Please help check and update vtvcab.vn.ini

Thanks

Generic syntax exception:
   message: 
no index page data received from ON Golf
unable to update channel, try again later
Existing guide data restored!

mat8861
Offline
WG++ Team memberDonator
Joined: 10 years
Last seen: 7 hours

Updated to rev.5 in siteini.pack . Please check new channel list

gtbinh
Offline
Donator
Joined: 3 months
Last seen: 1 month
mat8861
Offline
WG++ Team memberDonator
Joined: 10 years
Last seen: 7 hours
gtbinh wrote:

Hello, Can the two weblinks below be added to Vietnam?

https://chiasetainguyen.com/lich-phat-song
https://baomoi.com/tien-ich-lich-truyen-hinh.epi

Check siteini pack, chiasetainguyen has few channel with schedule

gtbinh
Offline
Donator
Joined: 3 months
Last seen: 1 month

Thank you, love it!  Yes, you are correct in regards to few channels for chiasentainguyen.com.  With Vietnam, the channels come and goes away.  If you want a narrow list of channels that are currently active, I'll list it below for chiasetainguyen.com so the webgrabber wont waste resource? (See below).  Also notice in the siteini for chiasetainguyen ini, it is only retrieving 1 day of schedule.  Is it because it is not able to interpret the next day, because the site has 2 days of broadcast schedule.  For example, within https://chiasetainguyen.com/lich-phat-song-kenh-htv1, it will display the Vietnam local current day (3/8/2026) but if you scroll down it will also list the following day broadcast as well (3/9/2026).  Please screenshot attached.

VTV
    VTV1
    VTV2
    VTV3
    VTV4
    VTV5
    VTV5 Tây Nguyên
    VTV8
    VTV9
    VTV Cần Thơ

HTV
    HTV1
    HTV2
    HTV7
    HTV8
    HTV Thể Thao

THV (Vinh Long)
    THVL1
    THVL2
    THVL3
    THVL4

TH HÀ NỘI
    HaNoi TV1
    HaNoi TV2
    
SCTV
    OnSports+
    ANTV
    
HTVC
    HTVC Ca Nhạc
    HTVC Gia Đình
    HTVC Phim

 

Attachments: 
gtbinh
Offline
Donator
Joined: 3 months
Last seen: 1 month

Also, If you would like to clear some space, the below ini links no longer work when I visited the site.  Please double check, if i am mistaken or not.

dichvu.vtvcab.vn
503 Service Temporarily Unavailable

epg.vtc.gov.vn
This site can’t be reached
epg.vtc.gov.vn took too long to respond.

ftpplay.net
This site can’t be reached
ftpplay.net’s DNS address could not be found. Diagnosing the problem.
DNS_PROBE_POSSIBLE

htvonline.vn
This site can’t be reached
htvonline.vn’s DNS address could not be found. Diagnosing the problem.
DNS_PROBE_POSSIBLE

kplus.vn
This site can’t be reached
kplus.vn refused to connect.

truyenhinhanvien.vn
i don't see tv broadcast on site

tv.101vn.com
Web server is down Error code 521

tv.vietbao.vn
This site can’t be reached
tv.vietbao.vn’s DNS address could not be found. Diagnosing the problem.
DNS_PROBE_POSSIBLE

us.tvnet.gov.vn
This site can’t be reached
us.tvnet.gov.vn’s DNS address could not be found. Diagnosing the problem.
DNS_PROBE_POSSIBLE

vtc.gov.vn
This site can’t be reached
vtc.gov.vn took too long to respond.

vtc16.vn
This site can’t be reached
vtc16.vn’s DNS address could not be found. Diagnosing the problem.
DNS_PROBE_POSSIBLE

mat8861
Offline
WG++ Team memberDonator
Joined: 10 years
Last seen: 7 hours

chiasetainguyen.com is fixed

Did you check the web for those sites or just run siteini?  

gtbinh
Offline
Donator
Joined: 3 months
Last seen: 1 month

Only checked the websites.

gtbinh
Offline
Donator
Joined: 3 months
Last seen: 1 month

Hello Mat8861

I did some more digging and here are my findings on some good and bad INI

I use browser to visit webpage, ran the webgrab tool and provided the error msg from the logs and also why i think some aren't working i.e. Broadcast company cease operations or website no long provides any link or sections for TV Broadcast.

Removal suggestions (please see attached picture):
epg.vtc.gov.vn
ftpplay.net
htvonline.vn
tintuc.vn
truyenhinhanvien.vn
tv.101vn.com
tv.vietbao.vn
us.tvnet.gov.vn
vtc.gov.vn
vtc16.vn

 

Other Requests
Update INI sites requests (please see 2nd attached picture)
dichvu.vtvcab.vn -> https://www.vtvcab.vn/lich-phat-song
htv.com.vn -> https://htv.vn/truc-tuyen.htm

Misc
mytv.com.vm
-please update ini to grab SCTV channels

tv24.vn
-when navigating to site, url resolves to sctvonline.vn.  It is also blocking from viewing from USA Location

mat8861
Offline
WG++ Team memberDonator
Joined: 10 years
Last seen: 7 hours

I hope i did everything laugh  let me know

gtbinh
Offline
Donator
Joined: 3 months
Last seen: 1 month

Wow, that was quick! haha.  Alot were corrected except the below

DICHVU.VTVCAB.VN
[Warning ] server error, code 503

HTV.COM.VN
[Error   ] error downloading page: The format of value 'null' is invalid.

TV24.VN
[Error   ] error downloading page : TimeOut (5 sec)
[Error   ] retry 1 of 4 times

 

My Thoughts
DICHVU.VTVCAB.VN
I think the new source should be "https://www.vtvcab.vn/lich-phat-song".  Probably require a new INI?

HTV.COM.VN
Same as above.  New Source "https://htv.vn/truc-tuyen.htm"

TV24.VN
Using browser, it redirects to "sctvonline.vn".  But website says not allowed to view because I'm in the US.

gtbinh
Offline
Donator
Joined: 3 months
Last seen: 1 month

Hi Mat8861,

Can you add https://thhp.vn/lich-phat-song as another ini source for channels THP and THP+?

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