• 1
  • 16
  • 17
  • 18(current)
  • 19
  • 20
  • 22
Release [Module] youtube-dl - multi-site playable URL resolver
(2018-04-27, 17:30)Steph09 Wrote: 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
First, to be clear, the aren't any Kodi 18 betas. Kodi 18 currently only has an alpha release.

In any case, I'll look at it when I get a chance Smile
Reply
Information 
Version 18.425.0

Changes:
  • Updated youtube-dl core to 2018.4.25

On Kodi repo, pending mirror updates.
Reply
Would I be able to schedule downloads with this add-on?  I'd like to be able to schedule downloads during nighttime.  
Thanks
Reply
I installed it and answered my own question.  I does not have the ability to schedule downloads.  

Would it be possible to add the ability to schedule downloads to youtube-dl?  

I live in a rural area and have satellite internet.  My data is metered.  I get 10GB/month during the day but with an additional 50GB/month during the hours of 2 am to 8 am.  
Much of rural America only has access to satellite internet.  Additionally, I've heard that there are cell services around the world that meter data but have additional data during off hours.  

The ability to schedule downloads would be a great advantage to people like us.  

Thanks
Reply
Hi Ruuk,

Thank you for all your hard work on this wonderful plugin.  I have been using for quite some time and love it.

I am running Kodi 17.6 and have had problems updating to versions newer than 15.318.0 (which still works great).

After updating to either v 17.518.2 and v 18.425.0 the plugin refuses to download anything. 

I would really appreciate your advice as to why my Kodi 17.6 just doesn't seem compatible with your newer versions.  I would really love to run the latest version.

in Gratitude,
A
Reply
Wondering if anyone is still moderating this forum for Youtube-dl.  If so I would really appreciate help in figuring out why i can run old v15.318.0 and not the newer updates?

I don't want to be a nudge but want to know if I am barking up dead tree for help.

in Gratitude,
A
Reply
Hello @theGuruWithin

@ruuk hasn't been around for about 3 weeks, nor have I seen him in the developers channels. Not sure where he has got to, but obviously has real life to deal with. Smile

Unfortunately it is a matter of waiting until ruuk becomes active on Kodi again.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
Is there something i should alter in a file or something somewhere as download speeds are really low for me. My internet is capable of 2meg/sec download speeds but i'm only getting 200KBs via this addon.
Reply
For some reason, this is the first notification I've gotten from this thread since several posts ago.

In any case:

@Steph09: I don't think there's much you can do about the speed. In my experience many sites simply limit the speed, so your available bandwidth doesn't really matter.

@theGuruWithin: I don't really know what the issue could be without a log. I test every release and don't have any issues.

@RKCRLR: This add-on is primarily intended as a module for other add-ons to use. The download option was merely an easy addition and I don't plan to add anything to it. I'm more likely to remove it because it's more of a support burden for something that has little to do with the primary purpose of the add-on.
Reply
(2018-06-13, 04:46)ruuk Wrote: @RKCRLR: This add-on is primarily intended as a module for other add-ons to use. The download option was merely an easy addition and I don't plan to add anything to it. I'm more likely to remove it because it's more of a support burden for something that has little to do with the primary purpose of the add-on.
 That's too bad since it would really be useful for people in rural areas, but I can imagine the burden of keeping something like this up to date.  

Do you have any suggestions for scheduling YouTube downloads in Kodi or Android?  

Thanks
Reply
(2018-06-29, 00:37)RKCRLR Wrote:
(2018-06-13, 04:46)ruuk Wrote: @RKCRLR: This add-on is primarily intended as a module for other add-ons to use. The download option was merely an easy addition and I don't plan to add anything to it. I'm more likely to remove it because it's more of a support burden for something that has little to do with the primary purpose of the add-on.
 That's too bad since it would really be useful for people in rural areas, but I can imagine the burden of keeping something like this up to date.  

Do you have any suggestions for scheduling YouTube downloads in Kodi or Android?  

Thanks 
 Have you looked at the YouTube Library add-on? https://forum.kodi.tv/showthread.php?tid=246110&page=21

I've not used it myself but I am certain that it downloads video from YouTube. I am unsure if it can scheduled though. May be an idea to check the thread out.
Reply
I tried to install the Youtube Library addon but I'm having some problems (I suspect because the Shield TV is persnickety about permissions).  
However, I got far enough to see that there isn't an option in the menu to schedule a specific download time.  However, it appears close since you can schedule intervals (just not s specific time).  
Thanks for the suggestion.
Reply
(2018-06-13, 04:46)ruuk Wrote: @RKCRLR: This add-on is primarily intended as a module for other add-ons to use. The download option was merely an easy addition and I don't plan to add anything to it. I'm more likely to remove it because it's more of a support burden for something that has little to do with the primary purpose of the add-on.

The download option is a really great feature so it would be awesome if it could be kept supported. Seriously, its one of the best add-ons/features for kodi.

I'm probably adding to the to-do list here but I don't know if you know but downloads are not currently working with YT at the moment. It tries to start, the black box in the top right appears, but stops before the download starts and then nothing happens. It was fine until recently, maybe YT have changed somethings.
Reply
@ruuk

1. How about inserting a personal API key as in post#3 here:

https://forum.kodi.tv/showthread.php?tid=325740

Any other workarounds for the quota issue?

Is it only YouTube with the quota limit? How about other major sites like Dailymotion, Vimeo and Twitch?

2. I know yours is a module not a plugin, but is there a non-programmer way to use this for live streaming HLS/DASH streams from YouTube and other sites from within an IPTV m3u list, or some way of playing in KODI IPTV Simple Client or iVue2 TV Guide?

I have been asking around and the issue with YouTube plugin seems to be integration with input.adaptive add-on to generate live HLS /DASH streams. Some say problems are partly fixed in Kodi 18 nightlies.

Cheers,😈😈
Reply
1) Doesn't apply to this

2) No. Even for it's intended usage, this doesn't play DASH yet.
Reply
  • 1
  • 16
  • 17
  • 18(current)
  • 19
  • 20
  • 22

Logout Mark Read Team Forum Stats Members Help
[Module] youtube-dl - multi-site playable URL resolver2