aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/subscribestar.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-03-29 07:20:04 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2025-03-29 07:20:04 -0400
commit5ea6cce4fb40d2cc4f1d7849e44e6825ac2f3a73 (patch)
tree2d7040d732323306b2227682068ed5c9e12d4bf0 /gallery_dl/extractor/subscribestar.py
parent68863e88e0e0d8c08a8631831c05c302527627b1 (diff)
parent662e5ac868a5c1a3e7bc95b37054b3a0ca4db74f (diff)
Update upstream source from tag 'upstream/1.29.3'
Update to upstream version '1.29.3' with Debian dir 131b9b3bdbc67af5fe84f139a5b499a550f7c22b
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)