diff options
author | Sahil Singh <sahilsingh.ss73@gmail.com> | 2024-09-14 04:52:14 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-13 23:22:14 +0000 |
commit | c8c078fe28b0ffc15ef9646346c00c592fe71a78 (patch) | |
tree | 20a0c9a09f3f4072a4a5dda203b8d9b96274ecea | |
parent | 325001317d97f4545d66fac44c4ba772c6f45f22 (diff) |
[ie/pinterest] Extend `_VALID_URL` (#10867)
Closes #10850
Authored by: sahilsinghss73, bashonly
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
-rw-r--r-- | yt_dlp/extractor/pinterest.py | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/yt_dlp/extractor/pinterest.py b/yt_dlp/extractor/pinterest.py index 07f249498..f0b38893b 100644 --- a/yt_dlp/extractor/pinterest.py +++ b/yt_dlp/extractor/pinterest.py @@ -109,7 +109,7 @@ class PinterestBaseIE(InfoExtractor): class PinterestIE(PinterestBaseIE): - _VALID_URL = rf'{PinterestBaseIE._VALID_URL_BASE}/pin/(?P<id>\d+)' + _VALID_URL = rf'{PinterestBaseIE._VALID_URL_BASE}/pin/(?:[\w-]+--)?(?P<id>\d+)' _TESTS = [{ # formats found in data['videos'] 'url': 'https://www.pinterest.com/pin/664281013778109217/', @@ -174,6 +174,25 @@ class PinterestIE(PinterestBaseIE): }, { 'url': 'https://co.pinterest.com/pin/824721750502199491/', 'only_matching': True, + }, + { + 'url': 'https://pinterest.com/pin/dive-into-serenity-blue-lagoon-pedi-nails-for-a-tranquil-and-refreshing-spa-experience-video-in-2024--2885187256207927', + 'info_dict': { + 'id': '2885187256207927', + 'ext': 'mp4', + 'title': 'Dive into Serenity: Blue Lagoon Pedi Nails for a Tranquil and Refreshing Spa Experience! 💙💅', + 'description': 'md5:5da41c767d2317e42e49b663b0b2150f', + 'uploader': 'Glamour Artistry |Everyday Outfits, Luxury Fashion & Nail Designs', + 'uploader_id': '1142999717836434688', + 'upload_date': '20240702', + 'timestamp': 1719939156, + 'duration': 7.967, + 'comment_count': int, + 'repost_count': int, + 'categories': 'count:9', + 'tags': ['#BlueLagoonPediNails', '#SpaExperience'], + 'thumbnail': r're:^https?://.*\.(?:jpg|png)$', + }, }] def _real_extract(self, url): |