YouTube Videos - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: YouTube Videos (/showthread.php?tid=95297) |
YouTube Videos - neverm - 2011-02-25 Hi, I'm currently working on a video addon. I need to access YouTube videos for this, and i'm searching for the best way to do this. I have taken a look at the YouTube addon, and the code to fetch the correct video url is quite complicated. But I figured out a very easy solution to my problem - I simply use the YouTube addon by adding a video with the following URL: Code: url = "plugin://plugin.video.youtube/?path=/root/search&action=play_video&videoid=[i]SOMEID[/i]" But an obvious disadvantage is: my addon would depend on the YouTube addon. As far as I know, there is no way to express such a dependency in the addon metadata - so users would have to install the YouTube plugin by themselves. Any suggestions? Greets, neverm - neverm - 2011-02-26 I think I've found a solution (but still untested): http://wiki.xbmc.org/index.php?title=Add-ons_for_XBMC_(Developement) It seems that one can define a "requires" tag |