Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
ERROR: An extractor error has occurred. (caused by KeyError(u'vcodec',)); #12211
Comments
|
Any chance to fix this issue #12211using @awei78 patch ? $ 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) |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.02.21. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
[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!