add debug info

This commit is contained in:
Antonio J. Delgado 2024-12-28 19:30:34 +02:00
parent 1037094f28
commit d868b59e78

View file

@ -86,6 +86,11 @@ class GetPeertubeVideos:
len(attachments) len(attachments)
) )
for attachment in attachments: for attachment in attachments:
if size_field not in attachment:
self._log.error(
"Attachment without file size. %s",
attachment
)
if attachment[size_field] > selected[size_field]: if attachment[size_field] > selected[size_field]:
selected = attachment selected = attachment
if 'url' not in selected: if 'url' not in selected: