From 4920a159d82f6769ebeaadad34b4e1490eeaa66d Mon Sep 17 00:00:00 2001 From: Valdemar Erk Date: Tue, 10 Jan 2017 22:28:34 +0100 Subject: [PATCH] another small fix. --- src/you_get/extractors/panda.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/you_get/extractors/panda.py b/src/you_get/extractors/panda.py index 475b93fb..90bbfc55 100644 --- a/src/you_get/extractors/panda.py +++ b/src/you_get/extractors/panda.py @@ -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 + data2 = json.loads(data['videoinfo']['plflag_list']) while (requests.head(real_url, allow_redirects=True).status_code == 403 and counter < len(data2["backup"])): - data2 = json.loads(data['videoinfo']['plflag_list']) plflag = data2["backup"][counter].split('_') counter = counter + 1 real_url = 'http://pl{}.live.panda.tv/live_panda/{}.flv'.format(plflag[1],room_key)