mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-11 08:56:36 +02:00
[escapist] pep8 fixes
This commit is contained in:
parent
b2e8e7dab5
commit
965cb8d530
@ -76,7 +76,8 @@ def _real_extract(self, url):
|
|||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
for q in ['lq', 'hq', 'hd']:
|
for q in ['lq', 'hq', 'hd']:
|
||||||
config_req = compat_urllib_request.Request('http://www.escapistmagazine.com/videos/'
|
config_req = compat_urllib_request.Request(
|
||||||
|
'http://www.escapistmagazine.com/videos/'
|
||||||
'vidconfig.php?videoID=%s&hash=%s&quality=%s' % (video_id, key, 'mp4_' + q))
|
'vidconfig.php?videoID=%s&hash=%s&quality=%s' % (video_id, key, 'mp4_' + q))
|
||||||
config_req.add_header('Referer', url)
|
config_req.add_header('Referer', url)
|
||||||
config = self._download_webpage(config_req, video_id, 'Downloading video config ' + q.upper())
|
config = self._download_webpage(config_req, video_id, 'Downloading video config ' + q.upper())
|
||||||
@ -92,8 +93,7 @@ def _real_extract(self, url):
|
|||||||
'url': v,
|
'url': v,
|
||||||
'format_id': determine_ext(v) + '_' + q + str(i),
|
'format_id': determine_ext(v) + '_' + q + str(i),
|
||||||
'quality': quality(q),
|
'quality': quality(q),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user