kodi-pvr / pvr.iptvsimple

IPTV Simple client for Kodi PVR
GNU General Public License v2.0
765 stars 371 forks source link

{M} minute in Catch-up format specifier is not working as intended #498

Closed iMro0t closed 3 years ago

iMro0t commented 3 years ago

I'm using format specifiers in m3u it looks like this

#EXTINF:0 catchup="vod" catchup-source="plugin://plugin.video.jiotv/resources/lib/main/play/?channel_id=471&showtime={H}{M}{S}&srno={Y}{m}{d}" catchup-days="7",Sony SAB HD
plugin://plugin.video.jiotv/resources/lib/main/play/?channel_id=471

The problem is {M} modifier is giving the false results of the minute.

Here is the log

2021-03-21 02:26:36.095 T:83338   DEBUG <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - GetEPGTagStreamProperties - Tag startTime: 1616270400     endTime: 1616272200
2021-03-21 02:26:36.095 T:83338   DEBUG <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - GetEPGTagStreamProperties - GetPlayEpgAsLive is disabled
2021-03-21 02:26:36.095 T:83338   DEBUG <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - FormatDateTime - "plugin://plugin.video.jiotv/resources/lib/main/play/?channel_id=471&showtime=002636&srno=20210321"
2021-03-21 02:26:36.095 T:83338   DEBUG <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - BuildEpgTagUrl - plugin://plugin.video.jiotv/resources/lib/main/play/?channel_id=471&showtime=002636&srno=20210321
2021-03-21 02:26:36.096 T:83338   DEBUG <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - FormatDateTime - "plugin://plugin.video.jiotv/resources/lib/main/play/?channel_id=471&showtime=012500&srno=20210321"
2021-03-21 02:26:36.096 T:83338   DEBUG <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - BuildEpgTagUrl - plugin://plugin.video.jiotv/resources/lib/main/play/?channel_id=471&showtime=012500&srno=20210321
2021-03-21 02:26:36.096 T:83338    INFO <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - GetEPGTagStreamProperties - EPG Catchup URL: plugin://plugin.video.jiotv/resources/lib/main/play/?channel_id=471&showtime=012500&srno=20210321
2021-03-21 02:26:36.114 T:83338   DEBUG <general>: StartScript - calling plugin JioTV('plugin://plugin.video.jiotv/resources/lib/main/play/','1','?channel_id=471&showtime=012500&srno=20210321','resume:false')

One thing to note here is in the first line of the log it says startTime epoch is 1616270400 which is 08:00 PM in UST (01:30 AM IST) is formatted to showtime=012500 which is 01:25 AM IST. I don't know why it's creating 5 minutes difference I didn't specify any offset still it's giving the wrong result.

Hope it's clear what I am trying to ask.

phunkyfish commented 3 years ago

And it’s starting five minutes before it should?

phunkyfish commented 3 years ago

Ah, you have playback as live disabled so there is a default margin applied to the start and end of programme. Just look at the catchup settings of the add-on.

iMro0t commented 3 years ago

It worked. Thanks for clarifying @phunkyfish :beers: