From 26a967cbd4790d8f7cffb82c85430ab69a72b501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 27 Jul 2020 14:41:34 +0200 Subject: [PATCH] [pinterest] match 'pinterest.co.uk' URLs (fixes #914) --- gallery_dl/extractor/pinterest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gallery_dl/extractor/pinterest.py b/gallery_dl/extractor/pinterest.py index 3bbe06a7..cc89ac52 100644 --- a/gallery_dl/extractor/pinterest.py +++ b/gallery_dl/extractor/pinterest.py @@ -14,7 +14,7 @@ import itertools import json -BASE_PATTERN = r"(?:https?://)?(?:\w+\.)?pinterest\.\w+" +BASE_PATTERN = r"(?:https?://)?(?:\w+\.)?pinterest\.[\w.]+" class PinterestExtractor(Extractor): @@ -101,6 +101,8 @@ class PinterestBoardExtractor(PinterestExtractor): ("https://www.pinterest.com/g1952848/test/", { "exception": exception.GalleryDLException, }), + # .co.uk TLD (#914) + ("https://www.pinterest.co.uk/hextra7519/based-animals/"), ) def __init__(self, match):