2023-02-19, 04:40
(2023-02-19, 01:43)jepsizofye Wrote: @atharmian
open to suggestions?
in which way are you wanting to implement this?
if adding functionality to the youtube addon it might be advantageous to add a youtube channel handler which can be called as channel_id instead of video_id
the target function could be called like plugin://plugin.video.youtube/play/?channel_id=TravelChannel/live then it could load https://www.youtube.com/c/$channel_id with a simple url request
parse the output looking for:
html:link rel="canonical" href="https://www.youtube.com/watch?v=7Okfl1oor_c"
and then proceed functionality on that link as if it had initially been called as plugin://plugin.video.youtube/play/?video_id=7Okfl1oor_c
outside of direct implementation, any simple processing as stated above on the channel link could exract the url for the video (each time the stream is requested)
Thanks but I was looking for something already built in, which it should be !
Unluckily I am not a dev so cannot write own code.