[56] the actual hd type is "wvga", close #775

This commit is contained in:
Mort Yao 2015-11-27 22:05:12 +01:00
parent 602af182ee
commit 370b183d81

View File

@ -12,7 +12,7 @@ def w56_download_by_id(id, title = None, output_dir = '.', merge = True, info_on
assert title
hd = info['hd']
assert hd in (0, 1, 2)
hd_types = [['normal', 'qvga'], ['clear', 'vga'], ['super', 'dvga']][hd]
hd_types = [['normal', 'qvga'], ['clear', 'vga'], ['super', 'wvga']][hd]
files = [x for x in info['rfiles'] if x['type'] in hd_types]
assert len(files) == 1
size = int(files[0]['filesize'])