1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 20:22:36 +01:00

[pinterest] update not-found redirects

This commit is contained in:
Mike Fährmann 2018-08-07 12:10:59 +02:00
parent 7442d2940c
commit a86f2bfc80
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
4 changed files with 4 additions and 2 deletions

View File

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

View File

@ -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, {}

View File

@ -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"

View File

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