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

[arte.tv:+7] If video is not available anymore, provide a properly error message #13945

Closed
andreygursky opened this issue Aug 17, 2017 · 1 comment

Comments

@andreygursky
Copy link

@andreygursky andreygursky commented Aug 17, 2017

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.08.13. 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 2017.08.13

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

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

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.arte.tv/de/videos/030273-563-A/arte-reportage']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.08.13
[debug] Python version 2.7.13 - Linux-4.11.0-2-amd64-x86_64-with-debian-9.0
[debug] exe versions: ffmpeg 3.2.4-1, ffprobe 3.2.4-1, rtmpdump 2.4
[debug] Proxy map: {}
[arte.tv:+7] arte-reportage: Downloading webpage
[arte.tv:+7] arte-reportage: Downloading JSON metadata
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/andrey/progs/youtube-dl/__main__.py", line 19, in <module>
  File "/home/andrey/progs/youtube-dl/youtube_dl/__init__.py", line 465, in main
  File "/home/andrey/progs/youtube-dl/youtube_dl/__init__.py", line 455, in _real_main
  File "/home/andrey/progs/youtube-dl/youtube_dl/YoutubeDL.py", line 1956, in download
  File "/home/andrey/progs/youtube-dl/youtube_dl/YoutubeDL.py", line 776, in extract_info
  File "/home/andrey/progs/youtube-dl/youtube_dl/extractor/common.py", line 433, in extract
  File "/home/andrey/progs/youtube-dl/youtube_dl/extractor/arte.py", line 203, in _real_extract
  File "/home/andrey/progs/youtube-dl/youtube_dl/extractor/arte.py", line 246, in _extract_from_webpage
  File "/home/andrey/progs/youtube-dl/youtube_dl/extractor/arte.py", line 110, in _extract_from_json_url
AttributeError: 'list' object has no attribute 'items'

Description of your issue, suggested solution and other information

Such bug has been reported but closed by its reporter: #13289. Actually, if a video is not available anymore, youtube-dl should not stop with an exception in its source code. Please print a properly error message instead: like "cannot find a download link (video is likely not available anymore)".

@dstftw dstftw closed this in c0892b2 Aug 17, 2017
@andreygursky
Copy link
Author

@andreygursky andreygursky commented Aug 18, 2017

@dstftw, thanks for the fast fix.

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.