mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-30 03:58:24 +01:00
Make flake8 happy.
This commit is contained in:
parent
044a2ebb3b
commit
e648c7c38f
@ -54,8 +54,8 @@ class FloatplaneIE(InfoExtractor):
|
|||||||
# each url separately
|
# each url separately
|
||||||
for level in cdn_json['resource']['data']['qualityLevels']:
|
for level in cdn_json['resource']['data']['qualityLevels']:
|
||||||
video_url = cdn_json['cdn'] + cdn_json['resource']['uri']
|
video_url = cdn_json['cdn'] + cdn_json['resource']['uri']
|
||||||
video_url = video_url.replace('{qualityLevels}',level['name'])
|
video_url = video_url.replace('{qualityLevels}', level['name'])
|
||||||
video_url = video_url.replace('{qualityLevelParams.token}',cdn_json['resource']['data']['qualityLevelParams'][level['name']]['token'])
|
video_url = video_url.replace('{qualityLevelParams.token}', cdn_json['resource']['data']['qualityLevelParams'][level['name']]['token'])
|
||||||
formats.append({
|
formats.append({
|
||||||
'format_id': level['name'],
|
'format_id': level['name'],
|
||||||
'url': video_url,
|
'url': video_url,
|
||||||
|
Loading…
Reference in New Issue
Block a user