Kodi Community Forum
Release [Module] youtube-dl - multi-site playable URL resolver - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
---- Thread: Release [Module] youtube-dl - multi-site playable URL resolver (/showthread.php?tid=200877)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20


RE: [Module] youtube-dl - multi-site playable URL resolver - ruuk - 2017-12-05

Quote:First post says that the add-on is "designed to be updated by dropping in the youtube-dl core without modification".

I'm unsure how to do that - can somebody explain please?

It's not really meant to be an end user thing. I'll update the core Smile


RE: [Module] youtube-dl - multi-site playable URL resolver - Ebs_1 - 2017-12-06

(2017-12-05, 23:31)ruuk Wrote:
Quote:First post says that the add-on is "designed to be updated by dropping in the youtube-dl core without modification".

I'm unsure how to do that - can somebody explain please?

It's not really meant to be an end user thing. I'll update the core Smile 
 hi,
any idea why this does not work?
url = 'https://www.youtube.com/watch?v=ZOYQ94ylTGY&list=RDZOYQ94ylTGY'## This dont work
thanks again


L0RE - L0RE - 2017-12-19

Could you please Refresh the Core?
Thank you


RE: [Module] youtube-dl - multi-site playable URL resolver - sviet2k - 2017-12-19

Hi,

I use youtube-dl to get the url for google drive as follows:
     url = 'https://drive.google.com/file/d/0B6*************/view'
     vid = YDStreamExtractor.getVideoInfo(url,quality=0)
     stream_url = vid.streamURL()
youtube-dl return a "correct" stream_url but KODI DVDPlayer cannot play it and throw an exception.

13:11:09.367 T:18446744072344303920  NOTICE: DVDPlayer: Opening: https://r3---sn-t0a7sn7d.c.docs.google.com/videoplayback?id=***********
13:11:09.367 T:18446744072344303920 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
13:11:09.382 T:18446744071967799600  NOTICE: Creating InputStream
13:11:09.560 T:18446744071967799600   ERROR: CCurlFile::Stat - Failed: HTTP response code said error(22) for https://r3---sn-t0a7sn7d.c.docs.google.com/videoplayback?id=************
13:11:09.653 T:18446744071967799600   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
13:11:09.654 T:18446744071967799600   ERROR: CCurlFile::Open failed with code 403 for

Does anyone know what I did wrong ?

Thanks in advance for your help
sviet


RE: [Module] youtube-dl - multi-site playable URL resolver - dmdsoftware - 2017-12-21

(2017-12-19, 21:15)sviet2k Wrote: Hi,

I use youtube-dl to get the url for google drive as follows:
     url = 'https://drive.google.com/file/d/0B6*************/view'
     vid = YDStreamExtractor.getVideoInfo(url,quality=0)
     stream_url = vid.streamURL()
youtube-dl return a "correct" stream_url but KODI DVDPlayer cannot play it and throw an exception.

13:11:09.367 T:18446744072344303920  NOTICE: DVDPlayer: Opening: https://r3---sn-t0a7sn7d.c.docs.google.com/videoplayback?id=***********
13:11:09.367 T:18446744072344303920 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
13:11:09.382 T:18446744071967799600  NOTICE: Creating InputStream
13:11:09.560 T:18446744071967799600   ERROR: CCurlFile::Stat - Failed: HTTP response code said error(22) for https://r3---sn-t0a7sn7d.c.docs.google.com/videoplayback?id=************
13:11:09.653 T:18446744071967799600   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
13:11:09.654 T:18446744071967799600   ERROR: CCurlFile::Open failed with code 403 for

Does anyone know what I did wrong ?

Thanks in advance for your help
sviet
Looks like a transcoded version fetched and you need a DRIVE_STREAM cookie set to playback.  403 = no cookie set, not authorized for playback.


v17.1228.0 - ruuk - 2017-12-28

Version 17.1228.0

Changes:
  • Updated youtube-dl core to 2017.12.28

On Kodi repo, pending mirror updates.


RE: [Module] youtube-dl - multi-site playable URL resolver - sviet2k - 2017-12-31

(2017-12-21, 06:34)dmdsoftware Wrote: Looks like a transcoded version fetched and you need a DRIVE_STREAM cookie set to playback.  403 = no cookie set, not authorized for playback.
Thanks a lot for your help.


RE: [Module] youtube-dl - multi-site playable URL resolver - roliverosc - 2017-12-31

Hi @ruuk I have allowed myself to create the Spanish language for your addon. Oh by the way it would be interesting to be able to add strings of "control.py" to "string.po" in English and Spanish. There are elements that are displayed on the screen to the user that are not in the file "string.po" for English.

I have made one pull request on GitHub.

Regards


RE: [Module] youtube-dl - multi-site playable URL resolver - ruuk - 2018-01-01

Thanks, I'll look at merging it in soon.


v17.1231.0 - ruuk - 2018-01-01

Version 17.1231.0

Changes:
  • Update youtube-dl core to 2017.12.31
  • Enable usage in WSGI scripts (Thanks koying)
  • Add Spanish language strings (Thanks roliverosc)
  • Add Hebrew language strings (Thanks Eng2Heb)

On Kodi repo, pending mirror updates.


RE: [Module] youtube-dl - multi-site playable URL resolver - allejok96 - 2018-03-16

Hi, and thanks for this great add-on!

Love the ability to send any video link to Kodi through something like https://github.com/firsttris/plugin.video.sendtokodi.

But the best thing would be to have it integrated into the core URL resolver of Kodi. No need for passing a addon:// ... Done some googling for feature requests etc. Why isn't people talking about this? It's obvious. I have no idea what the devs  think about this - probably a big No, because it's too much loose parts. So I was looking at hacking something together just for fun, but realized Kodi is C++. As a Python hobbyist the only thing I can tell is putting some naughty code into xbmc/cores/VideoPlayer/Videoplayer.cpp should do it...

Is there some more discussing about this going on anywhere?


v18.320.0 - ruuk - 2018-03-25

Version 18.320.0

Changes:
  • Updated youtube-dl core to 2017.3.20

On Kodi repo, pending mirror updates.


RE: [Module] youtube-dl - multi-site playable URL resolver - Publish3r - 2018-04-15

- delete it, please -


RE: [Module] youtube-dl - multi-site playable URL resolver - Publish3r - 2018-04-15

Is it possible to set a custom output filename?
For example from listitem?

Code example: https://pastebin.com/Tq0cLPL9


RE: [Module] youtube-dl - multi-site playable URL resolver - Steph09 - 2018-04-27

Since updating to Kodi 18 beta's i have been unable to get this to work. Every time i ask to download a video it starts, immediately stops & doesn't download anything.

This is what is in the log.
Quote:16:25:55.236 T:4320  NOTICE: script.module.youtube.dl: {'url': 'plugin://plugin.video.dailymotion_com/?url=x6h3o5l&mode=playVideo', 'media_type': 'video', 'id': 1524842755, 'thumbnail': 'http://s1.dmcdn.net/pzYEs/x240-nUL.jpg', 'title': 'Botchamania 364'}
16:25:55.684 T:4320  NOTICE: script.module.youtube.dl: youtube_dl core version: 2018.03.20
16:25:57.135 T:7904 WARNING: CPythonInvoker(71): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
16:25:57.962 T:7904  NOTICE: script.module.youtube.dl: youtube_dl core version: 2018.03.20
16:25:57.963 T:7904  NOTICE: script.module.youtube.dl: DOWNLOAD SERVICE: START
16:25:57.964 T:7904  NOTICE: script.module.youtube.dl: Loading from queue. #1 this session
16:25:57.984 T:5680  NOTICE: Traceback (most recent call last):
                                              File "C:\Users\Stef\AppData\Roaming\Kodi\addons\script.module.youtube.dl\lib\YDStreamExtractor.py", line 225, in _actualGetExtension
                                                url = resolve_http_redirect(url)
                                              File "C:\Users\Stef\AppData\Roaming\Kodi\addons\script.module.youtube.dl\lib\YDStreamExtractor.py", line 153, in resolve_http_redirect
                                                conn.request("HEAD", path, headers={'User-Agent': YoutubeDLWrapper.std_headers['User-Agent']})
                                              File "C:\Program Files (x86)\Kodi\system\python\Lib\httplib.py", line 1042, in request
                                                self._send_request(method, url, body, headers)
                                              File "C:\Program Files (x86)\Kodi\system\python\Lib\httplib.py", line 1082, in _send_request
                                                self.endheaders(body)
                                              File "C:\Program Files (x86)\Kodi\system\python\Lib\httplib.py", line 1038, in endheaders
                                                self._send_output(message_body)
                                              File "C:\Program Files (x86)\Kodi\system\python\Lib\httplib.py", line 882, in _send_output
                                                self.send(msg)
                                              File "C:\Program Files (x86)\Kodi\system\python\Lib\httplib.py", line 844, in send
                                                self.connect()
                                              File "C:\Program Files (x86)\Kodi\system\python\Lib\httplib.py", line 821, in connect
                                                self.timeout, self.source_address)
                                              File "C:\Program Files (x86)\Kodi\system\python\Lib\socket.py", line 557, in create_connection
                                                for res in getaddrinfo(host, port, 0, SOCK_STREAM):
                                            gaierror: [Errno 11004] getaddrinfo failed
16:25:58.005 T:5680   ERROR: [debug] Encodings: locale cp1252, fs mbcs, out missing (instance), pref cp1252
16:25:58.005 T:5680   ERROR: [debug] youtube-dl version 2018.03.20
16:25:58.017 T:5680   ERROR: [debug] Python version 2.7.13 (CPython) - Windows-7-6.1.7601-SP1
16:25:58.022 T:5680   ERROR: [debug] exe versions: none
16:25:58.023 T:5680   ERROR: [debug] Proxy map: {}
16:25:58.029 T:5680  NOTICE: ++++==== script.module.addon.signals: sourceID keyword is DEPRECATED - use source_id ====++++
16:25:58.126 T:5680  NOTICE: Previous line repeats 1 times.
16:25:58.126 T:5680   ERROR: Exception in thread Thread-1:
                                            Traceback (most recent call last):
                                              File "C:\Program Files (x86)\Kodi\system\python\Lib\threading.py", line 801, in __bootstrap_inner
                                                self.run()
                                              File "C:\Program Files (x86)\Kodi\system\python\Lib\threading.py", line 754, in run
                                                self.__target(*self.__args, **self.__kwargs)
                                              File "C:\Users\Stef\AppData\Roaming\Kodi\addons\script.module.youtube.dl\lib\YDStreamExtractor.py", line 320, in _handleDownload
                                                result = download(info, util.TMP_PATH)
                                              File "C:\Users\Stef\AppData\Roaming\Kodi\addons\script.module.youtube.dl\lib\YDStreamExtractor.py", line 417, in download
                                                YoutubeDLWrapper.download(info)
                                              File "C:\Users\Stef\AppData\Roaming\Kodi\addons\script.module.youtube.dl\lib\YoutubeDLWrapper.py", line 340, in download
                                                return fd.download(name, info)
                                              File "C:\Users\Stef\AppData\Roaming\Kodi\addons\script.module.youtube.dl\lib\youtube_dl\downloader\common.py", line 364, in download
                                                return self.real_download(filename, info_dict)
                                              File "C:\Users\Stef\AppData\Roaming\Kodi\addons\script.module.youtube.dl\lib\youtube_dl\downloader\http.py", line 340, in real_download
                                                establish_connection()
                                              File "C:\Users\Stef\AppData\Roaming\Kodi\addons\script.module.youtube.dl\lib\youtube_dl\downloader\http.py", line 109, in establish_connection
                                                ctx.data = self.ydl.urlopen(request)
                                              File "C:\Users\Stef\AppData\Roaming\Kodi\addons\script.module.youtube.dl\lib\youtube_dl\YoutubeDL.py", line 2199, in urlopen
                                                return self._opener.open(req, timeout=self._socket_timeout)
                                              File "C:\Program Files (x86)\Kodi\system\python\Lib\urllib2.py", line 429, in open
                                                response = self._open(req, data)
                                              File "C:\Program Files (x86)\Kodi\system\python\Lib\urllib2.py", line 452, in _open
                                                'unknown_open', req)
                                              File "C:\Program Files (x86)\Kodi\system\python\Lib\urllib2.py", line 407, in _call_chain
                                                result = func(*args)
                                              File "C:\Program Files (x86)\Kodi\system\python\Lib\urllib2.py", line 1266, in unknown_open
                                                raise URLError('unknown url type: %s' % type)
                                            URLError: <urlopen error unknown url type: plugin>
16:25:58.182 T:7904  NOTICE: script.module.youtube.dl: DOWNLOAD SERVICE: FINISHED



This forum uses Lukasz Tkacz MyBB addons.