Hmm, I don’t understand. Addon must know url to play channel. But, maybe I can edit m3u and add those required fields to each channel url?
It has the url, but it has no idea what each part of the URL mean. It’s just a string, which it passes to Kodi to open the stream.
Need to assume we can customize m3u file name, that will be always last field. In this case it’s mono.m3u8, with or without additional fields
@TheCoolest I think I can setup proxy to rewrite urls as addon acceps to actual Flussonic format. However, I don’t understand how supported format works. As I can see, there are fields for start time, and current time, shouldn’t it rather be start time and end time?
I have made php scripts to add catchup-source tags for many providers using flussonic and XtremeCodes backend. Tested by me with 4 providers and by other forum users, where I have posted my scripts.
I think you can use those regexp patterns to construct catchup-source, so you can support catchup=“xc”, catchup=“flussonic” and catchup=“fs”
Here we go:
catchup="flussonic"
or catchup="fs"
pass stream url to this regex pattern:
^(http[s]?://[^/]+)/([^/]+)/([^/]+)\.m3u8(\?.+=.+)?$
group 1 - server adress
group 2 - stream id
group 3 - list type (mono, video, index)
group 4 - credentials (?token= or ?username=&password=) (optional)
now catchup url will be:
catchup-source='"'.$matches[1].'/'.$matches[2].'/'.$matches[3].'-${start}-14400.m3u8'.$matches[4].'"';
And now for XC (XtremeCodes)
catchup="xc"
regex for stream url:
^(http[s]?://[^/]+)/(?:live/)?([^/]+)/([^/]+)/([^/\.]+)(\.m3u[8]?)?$
group 1 - server adress
group 2 - username
group 3 - password
group 4 - stream id
group 5 - extension (optional - used for hls lists)
now catchup url will be:
$extension = ($matches[5] ? $matches[5] : '.ts');
catchup-source='"'.$matches[1].'/timeshift/'.$matches[2].'/'.$matches[3].'/240/{Y}-{m}-{d}:{H}-{M}/'.$matches[4].$extension.'"';
@Mr_Groch do you mean I can put those regex to addon settings?
No, this is a change request to addon with a little tip how to
Why won’t you create pull request if you able to modify addon to add Flussonic catchup support
I don’t have xbmc dev environment set up and not soo much free time to play with it, sorry… I have possibility to create some quick scripts to improve my life, but xbmc dev is not on my todo
If you want to use yours flussonic m3u list with this addon, you can use my online converter script, enter your list url, click convert and enter result url to m3u url in addon conf (leaving archive url format empty):
Well, I will try your converter. But, maybe @TheCoolest should look at your scripts, Flussonic catchup support could be great improvement, as it’s widely used
I’ve been using flussonic for half a year now.
All you need is to change each url from
index.m3u8 or mono.m3u8 or video.m3u8
to
index-{utc}-10800.m3u8
Supported:
Playing and rewinding finished recordings
Not supported:
Resuming after pause (stream restart needed)
Playing unfinished recordings (a more complex API implementation needed)
index-{utc}-10800.m3u8 is not enough - look at my post where I have created regex pattern for flussonic:
Assuming index.m3u8 is not enough - it could be video or mono. Depends on backend configuration not all variants may be available, so best option is to use the same as for live stream url
@Mr_Groch can you show example what is your regex result?
@routir your solution does not work. If I change as you described and leave archive format empty, addon does not allow to use archive at all and if I try to play current live channel, {utc} part is not expanded to timestamp, url plays as is and playback fails.
If I add anything to archive format, {utc} is expanded, but addon destroys url by adding string I posted to end of the url. Live stream is still not playable too, because addon does not expand {utc} and url is invalid.
How did you make live and archived content playable? As a workaround, I set & as archive format. Now archived content playback is fine, but live content is not playable, because for live content, addon tries to play url as us, with {utc} string and url is invalid
@giaur500 my regex and @routir post are nor soultion fo end users.If you want to use archive with your flussonic list on current pplugin version, you can use my online converter or edit your m3u list manually to add catchup-source tag.
@Mr_Groch indeed your script works fine. Can you share it or it’s closed source?
Those scripts are very simple, without any error handling, no big deal:
https://gist.github.com/Mr-Groch/b6ed3369e914faa2de66a94d2b88bf7d
Some extra functionality have added fo XC backends - I’m checking in script if channel has archive using XC API
Some other question - is there any way to install this addon on Android? @TheCoolest or please anybody confirm?
No, you can’t make it work in Android.
I have added to both scripts requesting API for catchup possibilities. I’m now adding catchup-source (and other tags) only to channels that have archive, and catchup-days will be set to count of full recorded days for each channel:
@TheCoolest I want to request functionality of restarting stream using archive url after pause and resume live playback channel with available archive. Currently pause functionality isn’t working properly - after resume it will jump to live but KODI pvr thinks that is in timeshift mode…