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

Error when attempting to download AMC video with no ratings #12453

Closed
tremby opened this issue Mar 14, 2017 · 4 comments
Closed

Error when attempting to download AMC video with no ratings #12453

tremby opened this issue Mar 14, 2017 · 4 comments

Comments

@tremby
Copy link

@tremby tremby commented Mar 14, 2017

  • I've verified and I assure that I'm running youtube-dl 2017.03.15
  • At least skimmed through README and most notably 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)

$ youtube-dl -v "http://www.amc.com/shows/fear-the-walking-dead/video-extras/fear-the-walking-dead-passage-parts-1-8"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'http://www.amc.com/shows/fear-the-walking-dead/video-extras/fear-the-walking-dead-passage-parts-1-8']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.03.15
[debug] Python version 3.5.2 - Linux-4.4.0-62-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: ffmpeg 2.8.10-0ubuntu0.16.04.1, ffprobe 2.8.10-0ubuntu0.16.04.1
[debug] Proxy map: {}
[AMCNetworks] fear-the-walking-dead-passage-parts-1-8: Downloading webpage
[AMCNetworks] fear-the-walking-dead-passage-parts-1-8: Downloading JSON metadata
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/__init__.py", line 464, in main
    _real_main(argv)
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/__init__.py", line 454, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 1883, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 761, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/extractor/common.py", line 427, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/extractor/amcnetworks.py", line 71, in _real_extract
    rating = theplatform_metadata['ratings'][0]['rating']
IndexError: list index out of range

Description of your issue, suggested solution and other information

It looks like the AMC downloader is expecting ratings to exist, but there might not be any.

@remitamine remitamine marked this as a duplicate of #13742 Jul 26, 2017
@elasca
Copy link

@elasca elasca commented Jul 26, 2017

Which ratings?

@tremby
Copy link
Author

@tremby tremby commented Jul 26, 2017

See in the stack trace. Second-from-last line, where it shows the line of code which is failing:

rating = theplatform_metadata['ratings'][0]['rating']
@dstftw dstftw closed this in 9682666 Jul 26, 2017
@elasca
Copy link

@elasca elasca commented Jul 27, 2017

i don't know how to correct that, any idea?

@Hrxn
Copy link

@Hrxn Hrxn commented Jul 28, 2017

No new version released yet. If you have a working Python installation, you can run from source.

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
3 participants
You can’t perform that action at this time.