2021-05-20, 12:00
(2021-05-20, 01:07)jmh2002 Wrote:(2021-05-19, 00:27)cordcut Wrote: Hi,
I am making an m3u playlist for the local tv station in my area, but there is one station that is only available on youtube. Their streams can lasts for about 2-5 days before they restart. Every time that happens, there is a new stream id. I noticed however, that if you use the url with the formatit takes you to the live stream if they are live. I was wondering if there is a way I can leverage this and create a link that works with the m3u playlist I have. I saw something similar on this forum thread, but this can't work for my case, because the streams restart from time to time, and thus the streams change. Is there a way I can do this in not with this addon, then in some other way?Code:youtube.com/c/<channel_name>/live
I'm not sure if it can help you (I'm not very familiar with m3u playlists) but here is an example from my favourites.xml using the 'live' functionality in the YouTube addon:
Code:<favourite name="France24" thumb="special://home/# art icons/France24.png">PlayMedia("plugin://plugin.video.youtube/play/?channel_id=UCQfwfsi5VrQ8yKZ-UWmAEFg&live=1"</favourite>
And here is the post by @anxdpanic (the developer) describing how this function works:
https://forum.kodi.tv/showthread.php?tid...pid2930861
anxdpanic Wrote:As long as API keys are configured, the closest you'll be able to get is:
Code:plugin://plugin.video.youtube/play/?channel_id=<channel id>&live=<index>
index is the index of the live stream on the channel, use 1 for channels with only one live stream.
This isn't 100% accurate since in some cases the index does change when there are multiple live streams on the channel
Hope this helps
Thanks a lot. I had not seen that forum. The links now work and I can watch the stations without issues.