mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-22 16:44:32 +01:00
[pandatv] Modernize (closes #14693)
This commit is contained in:
parent
4222346fb2
commit
61fb07e156
@ -6,7 +6,6 @@ from ..utils import (
|
|||||||
ExtractorError,
|
ExtractorError,
|
||||||
qualities,
|
qualities,
|
||||||
)
|
)
|
||||||
import json
|
|
||||||
|
|
||||||
|
|
||||||
class PandaTVIE(InfoExtractor):
|
class PandaTVIE(InfoExtractor):
|
||||||
@ -67,10 +66,10 @@ class PandaTVIE(InfoExtractor):
|
|||||||
plflag1 = '4'
|
plflag1 = '4'
|
||||||
live_panda = 'live_panda' if plflag0 < 1 else ''
|
live_panda = 'live_panda' if plflag0 < 1 else ''
|
||||||
|
|
||||||
plflag_auth = json.loads(video_info["plflag_list"])
|
plflag_auth = self._parse_json(video_info['plflag_list'], video_id)
|
||||||
sign = plflag_auth["auth"]["sign"]
|
sign = plflag_auth['auth']['sign']
|
||||||
ts = plflag_auth["auth"]["time"]
|
ts = plflag_auth['auth']['time']
|
||||||
rid = plflag_auth["auth"]["rid"]
|
rid = plflag_auth['auth']['rid']
|
||||||
|
|
||||||
quality_key = qualities(['OD', 'HD', 'SD'])
|
quality_key = qualities(['OD', 'HD', 'SD'])
|
||||||
suffix = ['_small', '_mid', '']
|
suffix = ['_small', '_mid', '']
|
||||||
|
Loading…
Reference in New Issue
Block a user