[subscribestar] extract 'title' metadata (#7219)

This commit is contained in:
Mike Fährmann
2025-03-22 09:46:08 +01:00
parent f8ef9a7b35
commit 4807bc215c
2 changed files with 5 additions and 0 deletions

View File

@@ -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)