feat(subscribestar): port gallery-dl doc + audio attachment extraction #122
@@ -199,7 +199,7 @@ def _extract_content(chunk: str) -> str:
|
|||||||
|
|
||||||
def _attachment_item(
|
def _attachment_item(
|
||||||
frag: str, base: str, post_id: str, *, kind: str, title_marker: str, url_attr: str
|
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
|
"""One doc/audio attachment from its preview block — gallery-dl's
|
||||||
`_media_from_post` attachment/audio fields. `url_attr` is the URL-bearing
|
`_media_from_post` attachment/audio fields. `url_attr` is the URL-bearing
|
||||||
attribute (`href="` for docs, `src="` for audio); `title_marker` precedes the
|
attribute (`href="` for docs, `src="` for audio); `title_marker` precedes the
|
||||||
|
|||||||
Reference in New Issue
Block a user