Fixes for flake8

This commit is contained in:
spookyahell 2023-03-16 01:18:22 +01:00 committed by GitHub
parent 1a6fdcef9c
commit f1be31fa80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ def _real_extract(self, url):
formats = []
subtitles = {}
# list to track the urls and ensure that not a second manifest url with the same value is added
avoid_duplicate_manifest_urls = []
@ -77,11 +77,11 @@ def _real_extract(self, url):
continue
if not isinstance(media, dict):
continue
for tag_name, medium_url in media.items():
if tag_name not in ('videoURL', 'audioURL'):
continue
if medium_url not in avoid_duplicate_manifest_urls:
avoid_duplicate_manifest_urls.append(medium_url)
else: