From eaea25ca0e0b0af8b71da38e4afa256020c958eb Mon Sep 17 00:00:00 2001
From: lazzand <35269296+lazzand@users.noreply.github.com>
Date: Tue, 13 Apr 2021 14:00:26 +0200
Subject: [PATCH] Added code corrections to satisfy flake8 reqs :)

---
 youtube_dl/YoutubeDL.py | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 0ba40684c..efb747b86 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -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]]