Kodi Community Forum

Full Version: IPTV Simple now supports Catchup and Timeshifted Catchup in Kodi Matrix
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
(2022-01-11, 00:32)Gtmnyc Wrote: [ -> ]
(2022-01-10, 22:56)phunkyfish Wrote: [ -> ]
(2022-01-10, 22:31)Gtmnyc Wrote: [ -> ]thank you very much... got it all sorted now.. i didnt know the catchup structure in the m3u..

i wrote a script to add the catch up tag and pull which ever groups you want from your provider and write an m3u..

can i upload it if anyone wants it?

Nice, well done!!! Can you add to a GitHub gist or something and post a link here?
it crazy as i was working on everything you implemented last year.. i was able to watch catchup from the guide, also able to download catch up from the guide to keep shows longer, i wrote timers with bat files, and was working on timeshift ... now its all for nothing lol.... thank you for the great update..

I’m a little confused 🤔 How do you mean it’s all for nothing?
(2022-01-11, 10:07)phunkyfish Wrote: [ -> ]
(2022-01-11, 00:32)Gtmnyc Wrote: [ -> ]
(2022-01-10, 22:56)phunkyfish Wrote: [ -> ]Nice, well done!!! Can you add to a GitHub gist or something and post a link here?
it crazy as i was working on everything you implemented last year.. i was able to watch catchup from the guide, also able to download catch up from the guide to keep shows longer, i wrote timers with bat files, and was working on timeshift ... now its all for nothing lol.... thank you for the great update..

I’m a little confused 🤔 How do you mean it’s all for nothing?

Will you've done it all natively, and built in.
My way was a little hack.. It was a good learning curve.. Its just crazy that every feature I was working on you had already though of..

Thanks again..

I'll upload the m3u script somewhere today
(2022-01-11, 11:13)Gtmnyc Wrote: [ -> ]
(2022-01-11, 10:07)phunkyfish Wrote: [ -> ]
(2022-01-11, 00:32)Gtmnyc Wrote: [ -> ]it crazy as i was working on everything you implemented last year.. i was able to watch catchup from the guide, also able to download catch up from the guide to keep shows longer, i wrote timers with bat files, and was working on timeshift ... now its all for nothing lol.... thank you for the great update..

I’m a little confused 🤔 How do you mean it’s all for nothing?

Will you've done it all natively, and built in.
My way was a little hack.. It was a good learning curve.. Its just crazy that every feature I was working on you had already though of..

Thanks again..

I'll upload the m3u script somewhere today

Ah, got it now. Cool 😃 Just wondering, is your provider format for catchup something common or is it bespoke?

I’ve been thinking of how provide some method of extracting channel id so it can be used in the catchup URL so users don’t need to edit their M3U files. It can’t be regex as most users won’t know how to use it. Turns out it’s nearly impossible. So supporting common use cases is the only real way to do it 😉, hence the question!
I just scraper d from the panel api .. it regexed and it will work for providers ive ever came across..

url  = "%s/panel_api.php?username=%s&password=%s" %(dns,user,password)

page = re.compile('{\"num\"Sad.+?),\"name\":\"(.+?)\".+?:\"(.+?)\".+?id\":\"(.+?)\".+?:\"(.+?)\".+?:\"(.+?)\".+?name\":\"(.+?)\".+?archive\"(.+?)\"',re.DOTALL).findall(html)
channel id and stream id are easily accessed from there..

i was thinking of doing an addon that pulls the groups on from your provider, you can then select the groups you want, and append the catch up url and it would only download selected groups. I would then set it to refresh the DL every couple of hrs.. then point the pvr to the local m3u.. this way the load time would be vastly reduced.
all you would need to do is add your provider, user and password.
@Gtmnyc I just realised that your timeshift URL almost matches an xtream codes timeshift URL. It was the 5.0 which I didn’t notice as duration that threw me off. It’s usually just a whole number in minutes.

If you don’t make any changes to the M3U file and instead just set the catchup type for those channels as “xc” I think it will just work, it will automatically set the duration as per the programme length.
(2022-01-11, 20:32)phunkyfish Wrote: [ -> ]@Gtmnyc I just realized that your timeshift URL almost matches an xtream codes timeshift URL. It was the 5.0 which I didn’t notice as duration that threw me off. It’s usually just a whole number in minutes.

If you don’t make any changes to the M3U file and instead just set the catchup type for those channels as “xc” I think it will just work, it will automatically set the duration as per the programe length.

i changed to the remote address, set catch up to xc... no joy
(2022-01-11, 21:32)Gtmnyc Wrote: [ -> ]
(2022-01-11, 20:32)phunkyfish Wrote: [ -> ]@Gtmnyc I just realized that your timeshift URL almost matches an xtream codes timeshift URL. It was the 5.0 which I didn’t notice as duration that threw me off. It’s usually just a whole number in minutes.

If you don’t make any changes to the M3U file and instead just set the catchup type for those channels as “xc” I think it will just work, it will automatically set the duration as per the programe length.

i changed to the remote address, set catch up to xc... no joy
(2022-01-11, 21:32)Gtmnyc Wrote: [ -> ]
(2022-01-11, 20:32)phunkyfish Wrote: [ -> ]@Gtmnyc I just realized that your timeshift URL almost matches an xtream codes timeshift URL. It was the 5.0 which I didn’t notice as duration that threw me off. It’s usually just a whole number in minutes.

If you don’t make any changes to the M3U file and instead just set the catchup type for those channels as “xc” I think it will just work, it will automatically set the duration as per the programe length.

i changed to the remote address, set catch up to xc... no joy

If you look at the log you should see the URL it generates. How close is it to the URL you need?
(2022-01-11, 23:16)phunkyfish Wrote: [ -> ]
(2022-01-11, 21:32)Gtmnyc Wrote: [ -> ]
(2022-01-11, 20:32)phunkyfish Wrote: [ -> ]@Gtmnyc I just realized that your timeshift URL almost matches an xtream codes timeshift URL. It was the 5.0 which I didn’t notice as duration that threw me off. It’s usually just a whole number in minutes.

If you don’t make any changes to the M3U file and instead just set the catchup type for those channels as “xc” I think it will just work, it will automatically set the duration as per the programe length.

i changed to the remote address, set catch up to xc... no joy

If you look at the log you should see the URL it generates. How close is it to the URL you need?
it doesnt give even the option of catch up...
(2022-01-11, 23:30)Gtmnyc Wrote: [ -> ]
(2022-01-11, 23:16)phunkyfish Wrote: [ -> ]
(2022-01-11, 21:32)Gtmnyc Wrote: [ -> ]i changed to the remote address, set catch up to xc... no joy

If you look at the log you should see the URL it generates. How close is it to the URL you need?
it doesnt give even the option of catch up...
would it be possible to dm you witha question ?
(2022-01-12, 03:42)Gtmnyc Wrote: [ -> ]
(2022-01-11, 23:30)Gtmnyc Wrote: [ -> ]
(2022-01-11, 23:16)phunkyfish Wrote: [ -> ]If you look at the log you should see the URL it generates. How close is it to the URL you need?
it doesnt give even the option of catch up...
would it be possible to dm you witha question ?

Of course, I have the same handle on gitter.im. Chatting will be easier there.
ok cool ill sign up thanks
@phunkyfish 

I have following live HLS stream (with possibility to get all the segments 2days backwards):

http://localhost:8080/999/playlist.m3u8 --> this means play channel 999 LIVE

http://localhost:8080/999/1642109600/playlist.m3u8 --> this means play channel 999 from timestamp 1642109600

File that is generated is just standard m3u8 like:

python:

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:3
#EXT-X-TARGETDURATION:10

#EXTINF:10.0,
http://somedomain.com/somechannel/aasadaca.ts
#EXTINF:10.0,
http://somedomain.com/somechannel/dafaasasa.ts

Is it possible to configure this stream, so I am able to watch it live automatically, and also to have possibility to go back up to 2 days in time?
(2022-01-14, 22:27)dragutinv55 Wrote: [ -> ]@phunkyfish 

I have following live HLS stream (with possibility to get all the segments 2days backwards):

http://localhost:8080/999/playlist.m3u8 --> this means play channel 999 LIVE

http://localhost:8080/999/1642109600/playlist.m3u8 --> this means play channel 999 from timestamp 1642109600

File that is generated is just standard m3u8 like:

python:

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:3
#EXT-X-TARGETDURATION:10

#EXTINF:10.0,
http://somedomain.com/somechannel/aasadaca.ts
#EXTINF:10.0,
http://somedomain.com/somechannel/dafaasasa.ts

Is it possible to configure this stream, so I am able to watch it live automatically, and also to have possibility to go back up to 2 days in time?

Yes, you just need an M3U entry like this:

txt:


#EXTINF:-1 catchup="default" catchup-source="http://localhost:8080/999/{utc}/playlist.m3u8 " catchup-days="2",Your channel name
http://localhost:8080/999/playlist.m3u8

Then you also need EPG data to go with it. Otherwise you just get an very long programme with a duration of 2 days.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34