This commit is contained in:
Antonio J. Delgado 2024-12-28 19:31:20 +02:00
parent d868b59e78
commit 1b5ef500ce

View file

@ -66,9 +66,6 @@ class GetPeertubeVideos:
item['id'] item['id']
) )
if item['id'] not in self.downloaded_items: if item['id'] not in self.downloaded_items:
selected={
'size_in_bytes': 0,
}
if 'attachments' in item: if 'attachments' in item:
attachments = item['attachments'] attachments = item['attachments']
size_field = 'size_in_bytes' size_field = 'size_in_bytes'
@ -81,6 +78,9 @@ class GetPeertubeVideos:
json.dumps(item, indent=2) json.dumps(item, indent=2)
) )
return None return None
selected={
size_field: 0,
}
self._log.debug( self._log.debug(
"%s attachments (videos) for this item", "%s attachments (videos) for this item",
len(attachments) len(attachments)