[subscribestar] fix 'title' extraction for 'trix-attachment' posts (#7526)

This commit is contained in:
Mike Fährmann
2025-05-16 19:09:37 +02:00
parent 0285473b04
commit 311eaf5f11

View File

@@ -46,7 +46,7 @@ class SubscribestarExtractor(Extractor):
data["content"] = content = text.extr(
content, "<body>", "</body>")
data["title"] = text.unescape(
text.extr(content, "<h1>", "</h1>"))
text.rextract(content, "<h1>", "</h1>")[0] or "")
yield Message.Directory, data
for num, item in enumerate(media, 1):