feat(subscribestar): port gallery-dl doc + audio attachment extraction #122

Merged
bvandeusen merged 2 commits from dev into main 2026-06-17 16:20:12 -04:00
Showing only changes of commit 479b7b54da - Show all commits
+1 -1
View File
@@ -199,7 +199,7 @@ def _extract_content(chunk: str) -> str:
def _attachment_item(
frag: str, base: str, post_id: str, *, kind: str, title_marker: str, url_attr: str
) -> "MediaItem | None":
) -> MediaItem | None:
"""One doc/audio attachment from its preview block — gallery-dl's
`_media_from_post` attachment/audio fields. `url_attr` is the URL-bearing
attribute (`href="` for docs, `src="` for audio); `title_marker` precedes the