Skip to content
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

Open
pvdl opened this issue Mar 19, 2015 · 4 comments
Open

Use youtube-dl script in an URI #8

pvdl opened this issue Mar 19, 2015 · 4 comments
Assignees

Comments

@pvdl
Copy link

pvdl commented Mar 19, 2015

Is this possible in Kodi?

plugin://script.module.youtube.dl?url="http://youtube.com/?v=whatever"

If not? It would be awesome to have this feature!

E.g in a m3u playlist.

#EXTM3U
#EXTINF:-1 group-title="News",News stream with a 'token'
plugin://script.module.youtube.dl?url="http://news.com/livestream"
@moedje
Copy link

moedje commented Jun 29, 2016

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?

@ruuk
Copy link
Owner

ruuk commented Jun 29, 2016

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)

@ruuk ruuk self-assigned this Jun 29, 2016
@pvdl
Copy link
Author

pvdl commented Nov 23, 2016

Based on this wiki http://kodi.wiki/view/Add-on:YouTube I made a file demo.strm in my ~/Videos folder.
The file contains:

plugin://plugin.video.youtube/?path=~/.kodi/addons&action=play_video&videoid=xxxyyyzzz

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.
Is there a possibility to achieve this method also with: script.module.youtube.dl?

@firsttris
Copy link

Hi pvdl,
i think i created what you requested:
https://github.com/firsttris/plugin.video.sendtokodi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants