mirror of
https://github.com/soimort/you-get.git
synced 2025-02-12 04:55:21 +03:00
another small fix.
This commit is contained in:
parent
b731685f1e
commit
4920a159d8
@ -25,8 +25,8 @@ def panda_download(url, output_dir = '.', merge = True, info_only = False, **kwa
|
||||
raise ValueError("The live stream is not online! (status:%s)" % status)
|
||||
real_url = 'http://pl{}.live.panda.tv/live_panda/{}.flv'.format(plflag[1],room_key)
|
||||
counter = 0
|
||||
while (requests.head(real_url, allow_redirects=True).status_code == 403 and counter < len(data2["backup"])):
|
||||
data2 = json.loads(data['videoinfo']['plflag_list'])
|
||||
while (requests.head(real_url, allow_redirects=True).status_code == 403 and counter < len(data2["backup"])):
|
||||
plflag = data2["backup"][counter].split('_')
|
||||
counter = counter + 1
|
||||
real_url = 'http://pl{}.live.panda.tv/live_panda/{}.flv'.format(plflag[1],room_key)
|
||||
|
Loading…
Reference in New Issue
Block a user