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

archive.org thumbnail download fails #18892

Closed
5 of 9 tasks
ealgase opened this issue Jan 17, 2019 · 0 comments
Closed
5 of 9 tasks

archive.org thumbnail download fails #18892

ealgase opened this issue Jan 17, 2019 · 0 comments

Comments

@ealgase
Copy link
Contributor

ealgase commented Jan 17, 2019

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

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

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


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 ```):

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-f', u'bestvideo+bestaudio/best', u'--download-archive', u'a.txt', u'--merge-output-format', u'mkv', u'-i', u'--all-subs', u'--embed-subs', u'--embed-thumbnail', u'--add-metadata', u'--write-annotations', u'--write-description', u'--write-info-json', u'--write-annotations', u'--write-thumbnail', u'--write-sub', u'-v', u'-o', u'%(uploader)s/%(title)s %(id)s.%(ext)s', u'--yes-playlist', u'https://archive.org/details/NuclearExplosion']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.01.16
[debug] Python version 2.7.12 (CPython) - Linux-3.14.0-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: ffmpeg 2.8.15, ffprobe 2.8.15, phantomjs 2.1.1
[debug] Proxy map: {}
[archive.org] NuclearExplosion: Downloading webpage
[archive.org] NuclearExplosion: Downloading JSON metadata
[info] Writing video description to: _/Nuclear explosion NuclearExplosion.description
[info] Writing video annotations to: _/Nuclear explosion NuclearExplosion.annotations.xml
WARNING: There are no annotations to write.
[info] Writing video description metadata as JSON to: _/Nuclear explosion NuclearExplosion.info.json
[archive.org] NuclearExplosion: Downloading thumbnail ...
ERROR: unknown url type: /download/NuclearExplosion/NuclearExplosion.thumbs%2FNuclearExplosionwww.keepvid.com_000005.jpg
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 804, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 858, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1636, in process_video_result
    self.process_info(new_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1838, in process_info
    self._write_thumbnails(info_dict, filename)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2385, in _write_thumbnails
    uf = self.urlopen(t['url'])
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2212, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 421, in open
    protocol = req.get_type()
  File "/usr/lib/python2.7/urllib2.py", line 283, in get_type
    raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: /download/NuclearExplosion/NuclearExplosion.thumbs%2FNuclearExplosionwww.keepvid.com_000005.jpg

Description of your issue, suggested solution and other information

Attempting to download the thumbnail of an archive.org video fails. This is because the returned thumbnail URL is no longer absolute, but relative. The link https://archive.org/download/NuclearExplosion/NuclearExplosion.thumbs%2FNuclearExplosionwww.keepvid.com_000005.jpg is alive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant