Skip to content

Commit

Permalink
[pandatv] Modernize (closes #14693)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Nov 9, 2017
1 parent 4222346 commit 61fb07e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions youtube_dl/extractor/pandatv.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
ExtractorError,
qualities,
)
import json


class PandaTVIE(InfoExtractor):
Expand Down Expand Up @@ -67,10 +66,10 @@ def _real_extract(self, url):
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', '']
Expand Down

0 comments on commit 61fb07e

Please sign in to comment.