mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 00:33:58 +03:00
fix logic
This commit is contained in:
parent
65cdf9c4ca
commit
2545b69f19
@ -70,11 +70,10 @@ def iqiyi_download(url, output_dir = '.', merge = True, info_only = False):
|
|||||||
|
|
||||||
title = info["data"]["vi"]["vn"]
|
title = info["data"]["vi"]["vn"]
|
||||||
|
|
||||||
|
|
||||||
#for highest qualities
|
#for highest qualities
|
||||||
#for http://www.iqiyi.com/v_19rrmmz5yw.html not vp -> np
|
#for http://www.iqiyi.com/v_19rrmmz5yw.html not vp -> np
|
||||||
try:
|
try:
|
||||||
if info["data"]["vp"] or info["data"]['vp']["tkl"]=='' :
|
if not info["data"]["vp"] and info["data"]['vp']["tkl"]=='' :
|
||||||
raise ValueError
|
raise ValueError
|
||||||
except:
|
except:
|
||||||
log.e("[Error] Do not support for iQIYI VIP video.")
|
log.e("[Error] Do not support for iQIYI VIP video.")
|
||||||
|
Loading…
Reference in New Issue
Block a user