[pinterest] update not-found redirects

pull/133/head
Mike Fährmann 6 years ago
parent 7442d2940c
commit a86f2bfc80
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -1,5 +1,7 @@
# Changelog
## Unreleased
## 1.5.0 - 2018-08-03
- Added support for:
- `behance` - https://www.behance.net/

@ -113,6 +113,7 @@ class PinterestPinitExtractor(PinterestExtractor):
response = self.request(self.url, method="HEAD", allow_redirects=False)
location = response.headers.get("Location")
if not location or location in ("https://api.pinterest.com/None",
"https://pin.it/None",
"https://www.pinterest.com"):
raise exception.NotFoundError("pin")
yield Message.Queue, location, {}

@ -6,4 +6,4 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
__version__ = "1.5.0"
__version__ = "1.5.1-dev"

@ -24,7 +24,6 @@ TRAVIS_SKIP = {
# temporary issues, etc.
BROKEN = {
"imagefap",
"pinterest",
"subapics",
}

Loading…
Cancel
Save