copy-paste typo

This commit is contained in:
jackyzy823 2015-05-21 13:01:44 +08:00
parent ce4f116a31
commit 50954908aa

View File

@ -50,11 +50,11 @@ def sohu_download(url, output_dir = '.', merge = True, info_only = False, extrac
urls = [] urls = []
data = data['data'] data = data['data']
title = data['tvName'] title = data['tvName']
print(data)
size = sum([int(clipsBytes) for clipsBytes in data['clipsBytes']]) size = sum([int(clipsBytes) for clipsBytes in data['clipsBytes']])
assert len(data['clipsURL']) == len(data['clipsBytes']) == len(data['su']) assert len(data['clipsURL']) == len(data['clipsBytes']) == len(data['su'])
for new in data['su']: for new in data['su']:
urls.append(real_url(hqvid, new)) urls.append(real_url(vid, new))
assert data['clipsURL'][0].endswith('.mp4')
print_info(site_info, title, 'mp4', size) print_info(site_info, title, 'mp4', size)
if not info_only: if not info_only: