• 1
  • 10
  • 11
  • 12(current)
  • 13
  • 14
  • 22
Release [Module] youtube-dl - multi-site playable URL resolver
(2017-01-31, 14:32)antondinkelmann Wrote: Hi

I still get " plugin.video.youtube needed to preview discoverable content" on my browser when I access kodi via Arch web interface. Update youtube.dl via your repo to 15.318.0. Kodi still insists on updating to 16.1026.0 via Kodi repo. I have applied both but Kodi's second.

What can be the problem?

The version on the Kodi official repository is the newest, so that it will always update to that version, and that is the version you should use.

The plugin.video.youtube add-on (the YouTube plugin) has nothing to do with this add-on, but it sounds like you need to install it.
Reply
Thanks ruuk, however when I google it, the first response I get is directed to your solution Smile

Will search further thanks
Reply
Hello ruuk,

Some sites have been failing to play.
Can you update your awesome addon with the latest youtube_dl core.

or add a manual update feature
Reply
(2017-02-20, 23:14)gedisony Wrote: Hello ruuk,

Some sites have been failing to play.
Can you update your awesome addon with the latest youtube_dl core.
Will do when I get the chance.
(2017-02-20, 23:14)gedisony Wrote: or add a manual update feature
Can't do this as add-ons that modify their own code are not allowed in the repo.
Reply
@gedisony, @ruuk

Take a look at this, you may find it usefull

http://forum.kodi.tv/showthread.php?tid=307630
Reply
Not the cleanest solution but on my manjaro system I created a symbolic link from /usr/lib/python3.6/site-packages/youtube_dl to ~/.kodi/addons/script.module.youtube.dl/lib/youtube_dl
As manjaro regulary update youtube-dl package the version in kodi stay up to date.
Maybe you can add an option to set the path to the system version of youtube-dl ?

Image
Reply
boogiepop,
That's very useful. I'll check it out.
I'll see if the path parameter can be used to specify individual file(s)
(see below for issue)

mac1202,
My dev machine is win10.
I've tried to replace the \youtube_dl in Kodi\addons\script.module.youtube.dl\lib
with the latest from github but I get an error:
"cannot import name YDStreamExtractor"

upon further investigation, the error happens if I update some files in youtube_dl\extractor.
aol.py is one of these files. (the newer one no longer have "class AolFeaturesIE(InfoExtractor):" )

It looks like this issue is not present in non-windows environment.
Reply
Information 
Version 17.310.0

Changes:
  • Updated youtube-dl core to 2017.0310

On Kodi repo, pending mirror updates.
Reply
(2017-02-21, 18:06)mac1202 Wrote: Maybe you can add an option to set the path to the system version of youtube-dl ?

Added an issue for this on GitHub. Don't know when I'll get to it though Smile
Reply
All Versions, also 17.310.0
https://www.zdf.de/familienfieber-100.html
Produces
1:49:52.344 T:4532 DEBUG: Traceback (most recent call last):
File "C:\Users\lore\AppData\Roaming\Kodi\addons\script.module.youtube.dl\lib\YDStreamExtractor.py", line 364, in getVideoInfo
info = _getYoutubeDLVideo(url, quality, resolve_redirects)
File "C:\Users\lore\AppData\Roaming\Kodi\addons\script.module.youtube.dl\lib\YDStreamExtractor.py", line 162, in _getYoutubeDLVideo
r = ytdl.extract_info(url, download=False)
File "C:\Users\lore\AppData\Roaming\Kodi\addons\script.module.youtube.dl\lib\youtube_dl\YoutubeDL.py", line 761, in extract_info
ie_result = ie.extract(url)
File "C:\Users\lore\AppData\Roaming\Kodi\addons\script.module.youtube.dl\lib\youtube_dl\extractor\common.py", line 427, in extract
ie_result = self._real_extract(url)
File "C:\Users\lore\AppData\Roaming\Kodi\addons\script.module.youtube.dl\lib\youtube_dl\extractor\zdf.py", line 228, in _real_extract
return self._extract_regular(url, player, video_id)
File "C:\Users\lore\AppData\Roaming\Kodi\addons\script.module.youtube.dl\lib\youtube_dl\extractor\zdf.py", line 180, in _extract_regular
return self._extract_entry(player['content'], player, content, video_id)
File "C:\Users\lore\AppData\Roaming\Kodi\addons\script.module.youtube.dl\lib\youtube_dl\extractor\zdf.py", line 171, in _extract_entry
'timestamp': unified_timestamp(content.get('editorialDate')),
File "C:\Users\lore\AppData\Roaming\Kodi\addons\script.module.youtube.dl\lib\youtube_dl\utils.py", line 1193, in unified_timestamp
dt = datetime.datetime.strptime(date_str, expression) - timezone + datetime.timedelta(hours=pm_delta)
TypeError: attribute of type 'NoneType' is not callable


With Youtube-dl (Command Line) is working
Reply
(2017-03-12, 02:54)L0RE Wrote: All Versions, also 17.310.0
https://www.zdf.de/familienfieber-100.html
Produces
dt = datetime.datetime.strptime(date_str, expression) - timezone + datetime.timedelta(hours=pm_delta)
TypeError: attribute of type 'NoneType' is not callable

With Youtube-dl (Command Line) is working

This is actually a Python in Kodi bug with the datetime module. I know a workaround.
Reply
@LORE: See if this version fixes it:

https://github.com/ruuk/script.module.yo...939258.zip

I couldn't duplicate the error, but I wasn't getting videos from that site to play either using WebViewer to test in Kodi, so it's possible it will cure the error for you but the videos still won't play. I can't recall for sure but that error may be windows specific. I know it doesn't happen in every instance anyway. In any case, let me know if the error goes away.
Reply
THe New Version is Wroking Better, but not quite (Seems it Selects the Wrong Stream:
youtube-dl binary::
youtube-dl https://www.zdf.de/familienfieber-100.html
[ZDF] familienfieber-100: Downloading webpage
[ZDF] familienfieber-100: Downloading JSON content
[ZDF] familienfieber-100: Downloading JSON metadata
[ZDF] familienfieber-100: Downloading m3u8 information
[ZDF] familienfieber-100: Downloading m3u8 information
[ZDF] familienfieber-100: Downloading f4m manifest
[ZDF] familienfieber-100: Downloading f4m manifest
WARNING: Your copy of avconv is outdated and unable to properly mux separate video and audio files, youtube-dl will download single file media. Update avconv to version 10-0 or newer to fix this.
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 533
[download] Destination: Familienfieber-familienfieber-100.mp4



Kodi:
0:37:57.705 T:19620 DEBUG: plugin.video.vodster: Provider :ZDF
00:37:57.705 T:19620 DEBUG: plugin.video.vodster: Url :https://www.zdf.de/fremdes-herz-100.html
00:37:57.717 T:19620 ERROR: [debug] Encodings: locale cp1252, fs mbcs, out missing (instance), pref cp1252
00:37:57.717 T:19620 DEBUG: .
00:37:57.717 T:19620 ERROR: [debug] youtube-dl version 2017.03.10
00:37:57.717 T:19620 DEBUG: .
00:37:57.722 T:19620 ERROR: [debug] Python version 2.7.11 - Windows-10-10.0.14393
00:37:57.722 T:19620 DEBUG: .
00:37:57.727 T:19620 ERROR: [debug] exe versions: none
00:37:57.727 T:19620 DEBUG: .
00:37:57.727 T:19620 ERROR: [debug] Proxy map: {}
00:37:57.727 T:19620 DEBUG: .
00:37:57.735 T:9780 DEBUG: Activating window ID: 10138
00:38:03.896 T:19620 DEBUG: script.module.youtube.dl: Quality: 1
00:38:03.896 T:19620 DEBUG: script.module.youtube.dl: [Fremdes Herz] Using Fallback Format: hds-1485 (NonexNone)
00:38:03.897 T:19620 DEBUG: plugin.video.vodster: stream_url :https://zdfvodnone-vh.akamaihd.net/z/meta-files/zdf/smil/f4m/300/17/01/170112_sendung_dbd/2/170112_sendung_dbd.smil/manifest.f4m?enableSSLTransfer=true&hdcore=3.7.0

It Seems The Plugin uses the f4m, and youtube-dl uses the m3u8.
When using youtube-dl with Json debug i get this jason
Json Code@Pastbin
Reply
hi.
i am trying to get the video from "http://mood.reshet.tv/travel/shows-the-amazing-race-episodes/s5_e36/"
but it does not help.
can you please help.
thank you very much
Reply
Site isn't compatible with youtube-dl there nothing to do about it.
Reply
  • 1
  • 10
  • 11
  • 12(current)
  • 13
  • 14
  • 22

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