mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
Fixes for flake8
This commit is contained in:
parent
1a6fdcef9c
commit
f1be31fa80
1 changed files with 3 additions and 3 deletions
|
@ -59,7 +59,7 @@ def _real_extract(self, url):
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
subtitles = {}
|
subtitles = {}
|
||||||
|
|
||||||
# list to track the urls and ensure that not a second manifest url with the same value is added
|
# list to track the urls and ensure that not a second manifest url with the same value is added
|
||||||
avoid_duplicate_manifest_urls = []
|
avoid_duplicate_manifest_urls = []
|
||||||
|
|
||||||
|
@ -77,11 +77,11 @@ def _real_extract(self, url):
|
||||||
continue
|
continue
|
||||||
if not isinstance(media, dict):
|
if not isinstance(media, dict):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for tag_name, medium_url in media.items():
|
for tag_name, medium_url in media.items():
|
||||||
if tag_name not in ('videoURL', 'audioURL'):
|
if tag_name not in ('videoURL', 'audioURL'):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if medium_url not in avoid_duplicate_manifest_urls:
|
if medium_url not in avoid_duplicate_manifest_urls:
|
||||||
avoid_duplicate_manifest_urls.append(medium_url)
|
avoid_duplicate_manifest_urls.append(medium_url)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue