Fix W504 and disable W503 (closes #20863)
[youtube-dl] / youtube_dl / extractor / ruutu.py
index f05401b36b46d9f10b9ea92493798345b94708d0..f984040aa07b08f56b1028d0dde1dc3fc78137cb 100644 (file)
@@ -91,8 +91,8 @@ class RuutuIE(InfoExtractor):
                     extract_formats(child)
                 elif child.tag.endswith('File'):
                     video_url = child.text
-                    if (not video_url or video_url in processed_urls or
-                            any(p in video_url for p in ('NOT_USED', 'NOT-USED'))):
+                    if (not video_url or video_url in processed_urls
+                            or any(p in video_url for p in ('NOT_USED', 'NOT-USED'))):
                         continue
                     processed_urls.append(video_url)
                     ext = determine_ext(video_url)