1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 10:24:33 +01:00

Make flake8 happy.

This commit is contained in:
Lam 2020-08-03 20:18:35 +02:00
parent 044a2ebb3b
commit e648c7c38f

View File

@ -54,8 +54,8 @@ class FloatplaneIE(InfoExtractor):
# each url separately
for level in cdn_json['resource']['data']['qualityLevels']:
video_url = cdn_json['cdn'] + cdn_json['resource']['uri']
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('{qualityLevels}', level['name'])
video_url = video_url.replace('{qualityLevelParams.token}', cdn_json['resource']['data']['qualityLevelParams'][level['name']]['token'])
formats.append({
'format_id': level['name'],
'url': video_url,