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 2e3a4e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions youtube_dl/extractor/pandatv.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,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 2e3a4e4

Please sign in to comment.