diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-03-15 04:52:06 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-03-15 04:52:06 +0530 |
commit | 10db0d2f573af31bdaea8e7a010476d896d90f88 (patch) | |
tree | cfc53e2c23632f5220fa2723eef40fd7bb417418 /yt_dlp/extractor/pinterest.py | |
parent | 7275535116d6b10c1e6df54c50ee872635f3c37e (diff) |
Update to ytdl-commit-3be0980
https://github.com/ytdl-org/youtube-dl/commit/3be098010f667b14075e3dfad1e74e5e2becc8ea
Diffstat (limited to 'yt_dlp/extractor/pinterest.py')
-rw-r--r-- | yt_dlp/extractor/pinterest.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/yt_dlp/extractor/pinterest.py b/yt_dlp/extractor/pinterest.py index 15c11a755..09aeea340 100644 --- a/yt_dlp/extractor/pinterest.py +++ b/yt_dlp/extractor/pinterest.py @@ -31,6 +31,7 @@ class PinterestBaseIE(InfoExtractor): title = (data.get('title') or data.get('grid_title') or video_id).strip() + urls = [] formats = [] duration = None if extract_formats: @@ -38,8 +39,9 @@ class PinterestBaseIE(InfoExtractor): if not isinstance(format_dict, dict): continue format_url = url_or_none(format_dict.get('url')) - if not format_url: + if not format_url or format_url in urls: continue + urls.append(format_url) duration = float_or_none(format_dict.get('duration'), scale=1000) ext = determine_ext(format_url) if 'hls' in format_id.lower() or ext == 'm3u8': |