-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use youtube-dl script in an URI #8
Comments
Does anyone know if this is possible yet? I was wanting to add a Context Menu to an Addon who's action was RunPlugin('plugin://script.module.youtube.dl/?mode=download&url=http://www.urltoresolve/video/12345') If not using this script is there another Module for Kodi that might make similar functionality possible? |
This addon is not a plugin, so using a plugin URL isn't really the way to go. Something using RunScript() would make more sense, but isn't currently in the addon. Fortunately, you can accomplish what you mentioned now by importing the module in your context menu code and using it that way. import YDStreamExtractor
url = 'http://www.urltoresolve/video/12345'
info = YDStreamExtractor.getVideoInfo(url)
YDStreamExtractor.handleDownload(info, bg=True) |
Based on this wiki http://kodi.wiki/view/Add-on:YouTube I made a file demo.strm in my ~/Videos folder.
where path= your path to the addon folder and videoid= Youtube video id. This method works but this is for the plugin: plugin.video.youtube. |
Hi pvdl, |
Is this possible in Kodi?
If not? It would be awesome to have this feature!
E.g in a m3u playlist.
The text was updated successfully, but these errors were encountered: