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: An extractor error has occurred. (caused by KeyError(u'vcodec',)); #12211

Closed
awei78 opened this issue Feb 22, 2017 · 1 comment
Closed

ERROR: An extractor error has occurred. (caused by KeyError(u'vcodec',)); #12211

awei78 opened this issue Feb 22, 2017 · 1 comment

Comments

@awei78
Copy link

@awei78 awei78 commented Feb 22, 2017

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 that [x])
  • Use Preview tab to see how your issue will actually look like

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

Before submitting an issue make sure you have:

  • 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)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

[Issue]
url:http://video.toggle.sg/en/series/whoopie-s-world/ep3/478601
parse error:
[toggle] 478601: Downloading video page
[toggle] 478601: Downloading video info json
[toggle] 478601: Downloading STBMain m3u8 information
[toggle] 478601: Downloading iPhoneMain m3u8 information
[toggle] 478601: Downloading iPadMain m3u8 information
[toggle] 478601: Downloading Android m3u8 information
[toggle] 478601: Downloading HLS_Mobile m3u8 information
ERROR: An extractor error has occurred. (caused by KeyError(u'vcodec',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

[Rolution]
youtube_dl\extractor\common.py
line1408:
if audio_in_video_stream.get(last_info.get('AUDIO')) is False and f['vcodec'] != 'none':
modified to
if audio_in_video_stream.get(last_info.get('AUDIO')) is False and f.get('vcodec', 'none') != 'none':

It works fine!

@vikivivi
Copy link

@vikivivi vikivivi commented Apr 10, 2017

Any chance to fix this issue #12211using @awei78 patch ?
This issue is still present using version 2017.04.09 (3f2ce68)

$ git diff youtube_dl/extractor/common.py
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index ae8af61..8bb998f 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -1424,7 +1424,7 @@ class InfoExtractor(object):
                         'abr': abr,
                     })
                 f.update(parse_codecs(last_info.get('CODECS')))
-                if audio_in_video_stream.get(last_info.get('AUDIO')) is False and f['vcodec'] != 'none':
+                if audio_in_video_stream.get(last_info.get('AUDIO')) is False and f.get('vcodec', 'none') != 'none':
                     # TODO: update acodec for audio only formats with the same GROUP-ID
                     f['acodec'] = 'none'
                 formats.append(f)
@dstftw dstftw mentioned this issue Apr 20, 2017
0 of 4 tasks complete
@dstftw dstftw closed this in cb25208 Apr 22, 2017
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
2 participants
You can’t perform that action at this time.