df
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled

This commit is contained in:
2025-12-27 14:50:59 -08:00
parent 22af776ee2
commit fcdd507d00
12 changed files with 1004 additions and 66 deletions

View File

@@ -220,7 +220,6 @@ class InternetArchive(Provider):
"mediatype",
"creator",
"date",
"downloads",
"collection",
]
@@ -243,7 +242,11 @@ class InternetArchive(Provider):
title = str(row.get("title") or identifier).strip() or identifier
mediatype = str(row.get("mediatype") or "").strip()
creator = str(row.get("creator") or "").strip()
creator_raw = row.get("creator")
if isinstance(creator_raw, list):
creator = ", ".join(str(x) for x in creator_raw if x)
else:
creator = str(creator_raw or "").strip()
date = str(row.get("date") or "").strip()
annotations: List[str] = []
@@ -272,9 +275,10 @@ class InternetArchive(Provider):
size_bytes=None,
tag=set(),
columns=[
("identifier", identifier),
("title", title),
("mediatype", mediatype),
("date", date),
("creator", creator),
],
full_metadata=dict(row),
)