1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-21 17:51:51 +00:00

[pandatv] Modernize (closes #14693)

This commit is contained in:
Sergey M․ 2017-11-09 23:25:43 +07:00
parent 4222346fb2
commit 61fb07e156
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -6,7 +6,6 @@ from ..utils import (
ExtractorError,
qualities,
)
import json
class PandaTVIE(InfoExtractor):
@ -67,10 +66,10 @@ class PandaTVIE(InfoExtractor):
plflag1 = '4'
live_panda = 'live_panda' if plflag0 < 1 else ''
plflag_auth = json.loads(video_info["plflag_list"])
sign = plflag_auth["auth"]["sign"]
ts = plflag_auth["auth"]["time"]
rid = plflag_auth["auth"]["rid"]
plflag_auth = self._parse_json(video_info['plflag_list'], video_id)
sign = plflag_auth['auth']['sign']
ts = plflag_auth['auth']['time']
rid = plflag_auth['auth']['rid']
quality_key = qualities(['OD', 'HD', 'SD'])
suffix = ['_small', '_mid', '']