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-01-31

(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.


RE: [Module] youtube-dl - multi-site playable URL resolver - antondinkelmann - 2017-02-01

Thanks ruuk, however when I google it, the first response I get is directed to your solution Smile

Will search further thanks


RE: [Module] youtube-dl - multi-site playable URL resolver - gedisony - 2017-02-20

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


RE: [Module] youtube-dl - multi-site playable URL resolver - ruuk - 2017-02-21

(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.


RE: [Module] youtube-dl - multi-site playable URL resolver - boogiepop - 2017-02-21

@gedisony, @ruuk

Take a look at this, you may find it usefull

http://forum.kodi.tv/showthread.php?tid=307630


RE: [Module] youtube-dl - multi-site playable URL resolver - mac1202 - 2017-02-21

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


RE: [Module] youtube-dl - multi-site playable URL resolver - gedisony - 2017-02-21

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.


v17.310.0 - ruuk - 2017-03-11

Version 17.310.0

Changes:
  • Updated youtube-dl core to 2017.0310

On Kodi repo, pending mirror updates.


RE: [Module] youtube-dl - multi-site playable URL resolver - ruuk - 2017-03-11

(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


RE: [Module] youtube-dl - multi-site playable URL resolver - L0RE - 2017-03-12

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


RE: [Module] youtube-dl - multi-site playable URL resolver - ruuk - 2017-03-13

(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.


RE: [Module] youtube-dl - multi-site playable URL resolver - ruuk - 2017-03-13

@LORE: See if this version fixes it:

https://github.com/ruuk/script.module.youtube.dl/archive/8ac0977d4f6d54c9851378ffda90720eba939258.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.


RE: [Module] youtube-dl - multi-site playable URL resolver - L0RE - 2017-03-13

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 [email protected]


RE: [Module] youtube-dl - multi-site playable URL resolver - Ebs_1 - 2017-03-22

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


RE: [Module] youtube-dl - multi-site playable URL resolver - mac1202 - 2017-03-22

Site isn't compatible with youtube-dl there nothing to do about it.


This forum uses Lukasz Tkacz MyBB addons.