mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 11:24:02 +03:00
add check for vip videos
This commit is contained in:
parent
f2b9bed346
commit
65cdf9c4ca
@ -72,6 +72,15 @@ def iqiyi_download(url, output_dir = '.', merge = True, info_only = False):
|
|||||||
|
|
||||||
|
|
||||||
#for highest qualities
|
#for highest qualities
|
||||||
|
#for http://www.iqiyi.com/v_19rrmmz5yw.html not vp -> np
|
||||||
|
try:
|
||||||
|
if info["data"]["vp"] or info["data"]['vp']["tkl"]=='' :
|
||||||
|
raise ValueError
|
||||||
|
except:
|
||||||
|
log.e("[Error] Do not support for iQIYI VIP video.")
|
||||||
|
exit(-1)
|
||||||
|
|
||||||
|
# assert info["data"]['vp']["tkl"]!=''
|
||||||
bid=0
|
bid=0
|
||||||
for i in info["data"]["vp"]["tkl"][0]["vs"]:
|
for i in info["data"]["vp"]["tkl"][0]["vs"]:
|
||||||
if int(i["bid"])<=10 and int(i["bid"])>=bid:
|
if int(i["bid"])<=10 and int(i["bid"])>=bid:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user