mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-23 17:35:07 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user