Added code corrections to satisfy flake8 reqs :)

This commit is contained in:
lazzand 2021-04-13 14:00:26 +02:00 committed by Andrea Lazzaretti
parent f4aa8c13b5
commit eaea25ca0e

View File

@ -2433,8 +2433,7 @@ class YoutubeDL(object):
if thumbnailformat in [i.get('id') for i in thumbnails]:
thumbnails = [i for i in thumbnails if i.get('id') == thumbnailformat]
else:
self.report_warning(
'Thumbnail ID unavailable, falling back to default.'
self.report_warning('Thumbnail ID unavailable, falling back to default.'
' Check available thumbnail formats with the option --list-thumbnails'
)
thumbnails = [thumbnails[-1]]