epg icon indicating copy to clipboard operation
epg copied to clipboard

mncvision.id EPG only captures tv shows in first page

Open F640 opened this issue 3 years ago • 9 comments

Hello, i have just noticed that mncvision.id EPG does not capture any shows in second page and onwards.

Basically, it only captures 50 first programs each day.

F640 avatar Feb 18 '22 02:02 F640

After playing around with this site, i have found way to fix this.

  • Some channels in this schedule (For example Miao Mi, Nickelodeon, Nick Junior, and CBeebies) will have 2 pages or more if there is more than 50 TV shows in one day. If so, a new div element with class box well appeared which contains page navigation.
  • Each time you move to next page or previous page the URL changed to www.mncvision.id/schedule/table/startno/{50 multiplication}. {50 multiplication} means where the site have to start the TV show from. if the value is 50, it will show 51st TV shows until 100, 101 to 150, and so on. If it start from numbers higher than or the same number of TV shows in a day it will give this error "Maaf.. data jadwal acara tidak ada", otherwise if the channel has only single page, it will show nothing (not even that error).
  • This site uses cookies to store channels you have checked last time (likely for convenience).

But i am stuck at making config to do this. Can anyone help me?

F640 avatar Feb 25 '22 12:02 F640

Config will need to be changed to use a GET rather than a POST. If you specify the startno then a POST will ignore that and always go back to the first page of results.

https://mncvision.id/schedule/table/startno/0 will work for the first page, meaning the variable URL will be a bit easier to deal with.

It's something of an ugly hack but you could set page = 0 and get https://mncvision.id/schedule/table/startno/{50 * page}. Process the returned items, increment page and repeat. If items count = 0 then exit and move on to the next channel. Downside is that doesn't check if there actually is a second page so you end up doing an extra GET for no reason. Potentially you could check the number of items returned and only repeat for the next page is item count = 50. If it's 49 or less then you know there can't be another page.

RevGear avatar Feb 25 '22 20:02 RevGear

https://mncvision.id/schedule/table/startno/0 will work for the first page, meaning the variable URL will be a bit easier to deal with.

This trick will work for for channels with two or more pages, but will not work for channels with single page (majority channels in this schedule has only single page). Single page channel must be captured from https://mncvision.id/schedule/table, otherwise it will blank if never chosen any channel yet.

F640 avatar Feb 26 '22 00:02 F640

This trick will work for for channels with two or more pages

Well spotted. I'd checked the startno/0 worked but didn't check it worked if there weren't multiple pages

RevGear avatar Feb 26 '22 11:02 RevGear

Config will need to be changed to use a GET rather than a POST. If you specify the startno then a POST will ignore that and always go back to the first page of results.

After considering this one further, i just stop work on this fix. I am a coding noobie either.

F640 avatar Feb 27 '22 06:02 F640

Fixed via #577

freearhey avatar Mar 05 '22 16:03 freearhey

Already an old news and noticed it for long time, but this issue happened randomly now after next scraping.

F640 avatar May 08 '22 11:05 F640

@freearhey I think you should look after the page number down below. If you manage to grab the page number for each iteration, you're good to go (and it should fix the EPG for a while).

P.S : if you actually remove the "startno/0" parameter, you still can see the EPG, and it gives a full day stream. https://mncvision.id/schedule/table

image

BellezaEmporium avatar May 10 '22 11:05 BellezaEmporium

P.S : if you actually remove the "startno/0" parameter, you still can see the EPG, and it gives a full day stream. https://mncvision.id/schedule/table

image

Won't work if you set to channels that usually has 2 or more pages, for example: Miao Mi, France 24 ~English~, Nickelodeon ~Asia~, and Nick Jr. ~Asia~.

P.S : If it has multiple pages, you can set "startno" to any number you want as long as its value doesn't exceed total shows in one channel and a day.

F640 avatar May 11 '22 11:05 F640

Fixed in https://github.com/iptv-org/epg/pull/1156

freearhey avatar Oct 05 '22 18:10 freearhey