fix: classify unsent upload connections and omit raw photo filenames [skip ci]

This commit is contained in:
渡口浪人
2026-10-18 08:19:03 +08:00
parent d7600f8329
commit 41c6897151
15 changed files with 53 additions and 20 deletions
+4 -2
View File
@@ -621,7 +621,6 @@ class PhotoSources:
)
if source.folder_caption:
caption = dict(item.get("caption") or {})
caption["filename"] = item["name"]
try:
caption["people"] = " & ".join(
self.synology.item_people(item["id"], space=source.people_space)
@@ -631,7 +630,10 @@ class PhotoSources:
logging.getLogger(__name__).warning(
"Photos person labels unavailable; keeping photo caption"
)
item = {**item, "caption": caption}
item = {
**item,
"caption": {k: v for k, v in caption.items() if v} or None,
}
elif source.kind in ("google-drive", "alipan", "baidu"):
from pigway_frame_flow.providers.cloud_drives import CloudDrives