summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/pinterest.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2024-02-20 02:31:10 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2024-02-20 02:31:10 -0500
commit01166fa52707cc282467427cf0e65c1b8983c4be (patch)
tree7f61e0de7e76a7a226bb6e05e4e3d181e11f673a /gallery_dl/extractor/pinterest.py
parent12e23f1195164dcb740d6d4a4287e762c9e5e534 (diff)
New upstream version 1.26.8.upstream/1.26.8
Diffstat (limited to 'gallery_dl/extractor/pinterest.py')
-rw-r--r--gallery_dl/extractor/pinterest.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/gallery_dl/extractor/pinterest.py b/gallery_dl/extractor/pinterest.py
index c46a587..8c04ed5 100644
--- a/gallery_dl/extractor/pinterest.py
+++ b/gallery_dl/extractor/pinterest.py
@@ -149,8 +149,7 @@ class PinterestBoardExtractor(PinterestExtractor):
pins = self.api.board_pins(board["id"])
if board["section_count"] and self.config("sections", True):
- base = "{}/{}/{}/id:".format(
- self.root, board["owner"]["username"], board["name"])
+ base = "{}{}id:".format(self.root, board["url"])
data = {"_extractor": PinterestSectionExtractor}
sections = [(base + section["id"], data)
for section in self.api.board_sections(board["id"])]
@@ -220,7 +219,7 @@ class PinterestSectionExtractor(PinterestExtractor):
"{board[name]}", "{section[title]}")
archive_fmt = "{board[id]}_{id}"
pattern = BASE_PATTERN + r"/(?!pin/)([^/?#]+)/([^/?#]+)/([^/?#]+)"
- example = "https://www.pinterest.com/USER/BOARD/SEcTION"
+ example = "https://www.pinterest.com/USER/BOARD/SECTION"
def __init__(self, match):
PinterestExtractor.__init__(self, match)