feat(import): include cover-art attachments in --export/--import

Export URL-backed attachments per title and rebuild them on import so they ride along into the muxed output. Local font attachments are skipped (not portable).
This commit is contained in:
imSp4rky
2026-05-26 17:37:44 -06:00
parent 1cb0e4b766
commit 96fd971af0
3 changed files with 25 additions and 0 deletions
+3
View File
@@ -2829,6 +2829,9 @@ class dl:
{"timestamp": chapter.timestamp, "name": chapter.name} for chapter in (title.tracks.chapters or [])
]
if "attachments" not in tinfo:
tinfo["attachments"] = [a.to_dict() for a in (title.tracks.attachments or []) if a.url]
export.write_text(json.dumps(doc, indent=4, ensure_ascii=False), encoding="utf8")
def prepare_drm(