diff options
author | bashonly <88596187+bashonly@users.noreply.github.com> | 2025-03-05 00:38:23 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-05 06:38:23 +0000 |
commit | bd0a66816934de70312eea1e71c59c13b401dc3a (patch) | |
tree | 2022fa22f3624363776989362a4562a3155a5e7e | |
parent | b8b47547049f5ebc3dd680fc7de70ed0ca9c0d70 (diff) |
[ie/pinterest] Fix extractor (#12538)
Closes #12529
Authored by: mikf
Co-authored-by: =?UTF-8?q?Mike=20F=C3=A4hrmann?= <mike_faehrmann@web.de>
-rw-r--r-- | yt_dlp/extractor/pinterest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/extractor/pinterest.py b/yt_dlp/extractor/pinterest.py index f0b38893b..b2fe7494b 100644 --- a/yt_dlp/extractor/pinterest.py +++ b/yt_dlp/extractor/pinterest.py @@ -23,9 +23,9 @@ class PinterestBaseIE(InfoExtractor): def _call_api(self, resource, video_id, options): return self._download_json( f'https://www.pinterest.com/resource/{resource}Resource/get/', - video_id, f'Download {resource} JSON metadata', query={ - 'data': json.dumps({'options': options}), - })['resource_response'] + video_id, f'Download {resource} JSON metadata', + query={'data': json.dumps({'options': options})}, + headers={'X-Pinterest-PWS-Handler': 'www/[username].js'})['resource_response'] def _extract_video(self, data, extract_formats=True): video_id = data['id'] |