summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/myportfolio.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2020-08-15 17:48:11 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2020-08-15 17:48:11 -0400
commit7cf59dc17c3607e096292462ed15d391be4e3dfd (patch)
tree50d2750e958f43271dc6cc5310211cf8f8bbd9d0 /gallery_dl/extractor/myportfolio.py
parentba039cfb2e1ba2522ee0a0fa2a84a1a6579e4877 (diff)
New upstream version 1.14.4.upstream/1.14.4
Diffstat (limited to 'gallery_dl/extractor/myportfolio.py')
-rw-r--r--gallery_dl/extractor/myportfolio.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/gallery_dl/extractor/myportfolio.py b/gallery_dl/extractor/myportfolio.py
index 51b314a..e2e163a 100644
--- a/gallery_dl/extractor/myportfolio.py
+++ b/gallery_dl/extractor/myportfolio.py
@@ -9,7 +9,7 @@
"""Extract images from https://www.myportfolio.com/"""
from .common import Extractor, Message
-from .. import text
+from .. import text, exception
class MyportfolioGalleryExtractor(Extractor):
@@ -31,9 +31,8 @@ class MyportfolioGalleryExtractor(Extractor):
"pattern": r"https://andrewling\.myportfolio\.com/[^/?&#+]+$",
"count": ">= 6",
}),
- # no explicit title
("https://stevenilousphotography.myportfolio.com/society", {
- "keyword": "49e7ff6322645c22b409280656202c2736a380c9",
+ "exception": exception.NotFoundError,
}),
# custom domain
("myportfolio:https://tooco.com.ar/6-of-diamonds-paradise-bird", {
@@ -89,8 +88,10 @@ class MyportfolioGalleryExtractor(Extractor):
if title:
title = title.partition(">")[2]
user = user[:-len(title)-3]
- else:
+ elif user:
user, _, title = user.partition(" - ")
+ else:
+ raise exception.NotFoundError()
return {
"user": text.unescape(user),