mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 08:47:41 +00:00
Added code corrections to satisfy flake8 reqs :)
This commit is contained in:
parent
f4aa8c13b5
commit
eaea25ca0e
1 changed files with 4 additions and 5 deletions
|
@ -2431,12 +2431,11 @@ class YoutubeDL(object):
|
|||
if thumbnails:
|
||||
if thumbnailformat:
|
||||
if thumbnailformat in [i.get('id') for i in thumbnails]:
|
||||
thumbnails = [i for i in thumbnails if i.get('id')==thumbnailformat]
|
||||
thumbnails = [i for i in thumbnails if i.get('id') == thumbnailformat]
|
||||
else:
|
||||
self.report_warning(
|
||||
'Thumbnail ID unavailable, falling back to default.'
|
||||
' Check available thumbnail formats with the option --list-thumbnails'
|
||||
)
|
||||
self.report_warning('Thumbnail ID unavailable, falling back to default.'
|
||||
' Check available thumbnail formats with the option --list-thumbnails'
|
||||
)
|
||||
thumbnails = [thumbnails[-1]]
|
||||
else:
|
||||
thumbnails = [thumbnails[-1]]
|
||||
|
|
Loading…
Reference in a new issue