1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 16:57:40 +00:00

Added code corrections to satisfy flake8 reqs :)

This commit is contained in:
lazzand 2021-04-13 14:00:26 +02:00 committed by GitHub
parent f4aa8c13b5
commit f582c49019
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2431,10 +2431,9 @@ class YoutubeDL(object):
if thumbnails: if thumbnails:
if thumbnailformat: if thumbnailformat:
if thumbnailformat in [i.get('id') for i in thumbnails]: 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: else:
self.report_warning( self.report_warning('Thumbnail ID unavailable, falling back to default.'
'Thumbnail ID unavailable, falling back to default.'
' Check available thumbnail formats with the option --list-thumbnails' ' Check available thumbnail formats with the option --list-thumbnails'
) )
thumbnails = [thumbnails[-1]] thumbnails = [thumbnails[-1]]