From 8e150e69897724d315c3e31cbc187511a0d2d54c Mon Sep 17 00:00:00 2001 From: sheerluck Date: Mon, 28 Nov 2016 18:01:42 +0300 Subject: [PATCH] fix for NameError: name 'output_json' is not defined --- src/you_get/extractors/qq.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/you_get/extractors/qq.py b/src/you_get/extractors/qq.py index f1707527..c9ee7c0f 100644 --- a/src/you_get/extractors/qq.py +++ b/src/you_get/extractors/qq.py @@ -56,12 +56,12 @@ def qq_download_by_vid(vid, title, output_dir='.', merge=True, info_only=False): if not info_only: download_urls(part_urls, parts_ti, ext, total_size, output_dir=output_dir, merge=merge) else: - fvkey = output_json['vl']['vi'][0]['fvkey'] - mp4 = output_json['vl']['vi'][0]['cl'].get('ci', None) + fvkey = video_json['vl']['vi'][0]['fvkey'] + mp4 = video_json['vl']['vi'][0]['cl'].get('ci', None) if mp4: mp4 = mp4[0]['keyid'].replace('.10', '.p') + '.mp4' else: - mp4 = output_json['vl']['vi'][0]['fn'] + mp4 = video_json['vl']['vi'][0]['fn'] url = '%s/%s?vkey=%s' % ( parts_prefix, mp4, fvkey ) _, ext, size = url_info(url, faker=True)