summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/myportfolio.py
diff options
context:
space:
mode:
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),