summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/subscribestar.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/subscribestar.py')
-rw-r--r--gallery_dl/extractor/subscribestar.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gallery_dl/extractor/subscribestar.py b/gallery_dl/extractor/subscribestar.py
index 6c43941..5d0ec46 100644
--- a/gallery_dl/extractor/subscribestar.py
+++ b/gallery_dl/extractor/subscribestar.py
@@ -39,6 +39,8 @@ class SubscribestarExtractor(Extractor):
for post_html in self.posts():
media = self._media_from_post(post_html)
data = self._data_from_post(post_html)
+ data["title"] = text.unescape(text.extr(
+ data["content"], "<h1>", "</h1>"))
yield Message.Directory, data
for num, item in enumerate(media, 1):
item.update(data)
@@ -55,7 +57,9 @@ class SubscribestarExtractor(Extractor):
while True:
response = Extractor.request(self, url, **kwargs)
- if response.history and "/verify_subscriber" in response.url:
+ if response.history and (
+ "/verify_subscriber" in response.url or
+ "/age_confirmation_warning" in response.url):
raise exception.StopExtraction(
"HTTP redirect to %s", response.url)