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

npo.nl unknow url type npo+drm #15709

Closed
ghost opened this issue Feb 26, 2018 · 2 comments
Closed

npo.nl unknow url type npo+drm #15709

ghost opened this issue Feb 26, 2018 · 2 comments

Comments

@ghost
Copy link

@ghost ghost commented Feb 26, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.02.26. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.02.26

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

youtube-dl -v https://www.npo.nl/de-luizenmoeder/25-02-2018/AT_2091794
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.npo.nl/de-luizenmoeder/25-02-2018/AT_2091794']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.02.26
[debug] Python version 2.7.12 (CPython) - Linux-4.2.8-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 2.8.5
[debug] Proxy map: {}
[npo] AT_2091794: Downloading JSON metadata
[npo] AT_2091794: Downloading token
[npo] AT_2091794: Downloading formats JSON
[npo] AT_2091794: Downloading Adaptive stream JSON
[npo] AT_2091794: Downloading m3u8 information
[npo] AT_2091794: Downloading Hoog stream JSON
[npo] AT_2091794: Downloading Normaal stream JSON
[npo] AT_2091794: Downloading Laag stream JSON
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on u'npo+drm://internetvod.omroep.nl/AT_2091794'
ERROR: unable to download video data: <urlopen error unknown url type: npo+drm>
Traceback (most recent call last):
  File "/opt/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1896, in process_info
    success = dl(filename, info_dict)
  File "/opt/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1835, in dl
    return fd.download(name, info)
  File "/opt/lib/python2.7/site-packages/youtube_dl/downloader/common.py", line 364, in download
    return self.real_download(filename, info_dict)
  File "/opt/lib/python2.7/site-packages/youtube_dl/downloader/http.py", line 340, in real_download
    establish_connection()
  File "/opt/lib/python2.7/site-packages/youtube_dl/downloader/http.py", line 109, in establish_connection
    ctx.data = self.ydl.urlopen(request)
  File "/opt/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 2199, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/opt/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/opt/lib/python2.7/urllib2.py", line 452, in _open
    'unknown_open', req)
  File "/opt/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/opt/lib/python2.7/urllib2.py", line 1266, in unknown_open
    raise URLError('unknown url type: %s' % type)
URLError: <urlopen error unknown url type: npo+drm>

Description of your issue, suggested solution and other information

NPO has probably changed their format. Since 3 days programs via this site do not download anymore.

@jpluimers
Copy link

@jpluimers jpluimers commented Mar 2, 2018

I understand that you are busy, but I'm busy too and still invested a few hours finding out where problems started and what could be related.

Why? Because it is open source and open source projects can use any help they can get.

So where is the original issue that is not a duplicate and not closed? For many, that's the only way to properly track progress and certainly not warrants a rude

Stop posting duplicates and wait for the next release.

It certainly is not just a breakage on the npo side, as https://github.com/rg3/youtube-dl/releases/tag/2018.02.11 works but https://github.com/rg3/youtube-dl/releases/tag/2018.02.22 fails.

I bit the bullet and did a git bisect based on https://stackoverflow.com/questions/4713088/how-to-use-git-bisect/4714297#4714297

So at least in part this is a regression, as this is the commit that started failing: ee706f1

Bisecting: 0 revisions left to test after this (roughly 0 steps)
[ee706f1009a90e9911f31d01aa9eae41cc34e75b] [npo] Improve quality metadata extraction
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 2, 2018

Once again: it's a breakage at npo side due to introducing npo+drm URL scheme after 2018.02.26 was released that is already fixed in d1b6187. Regression is when something breakes due to your changes not due to changes of 3rdparties.

@ytdl-org ytdl-org locked and limited conversation to collaborators Mar 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.