Skip to content

Commit

Permalink
[cohost] support 'attachment-row' blocks (#4483)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Sep 13, 2024
1 parent 29279f0 commit 0d67d54
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gallery_dl/extractor/cohost.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ def _extract_blocks(self, post, files, shared=None):
file = block["attachment"].copy()
file["shared"] = shared
files.append(file)
elif type == "attachment-row":
for att in block["attachments"]:
file = att["attachment"].copy()
file["shared"] = shared
files.append(file)
elif type == "markdown":
content.append(block["markdown"]["content"])
elif type == "ask":
Expand Down

0 comments on commit 0d67d54

Please sign in to comment.