[pinterest] match 'pinterest.co.uk' URLs (fixes #914)

This commit is contained in:
Mike Fährmann
2020-07-27 14:41:34 +02:00
parent 901a897e6f
commit 26a967cbd4

View File

@@ -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):