fix output
This commit is contained in:
parent
63b3d7893b
commit
1037094f28
1 changed files with 4 additions and 4 deletions
|
@ -69,10 +69,6 @@ class GetPeertubeVideos:
|
||||||
selected={
|
selected={
|
||||||
'size_in_bytes': 0,
|
'size_in_bytes': 0,
|
||||||
}
|
}
|
||||||
self._log.debug(
|
|
||||||
"%s attachments (videos) for this item",
|
|
||||||
len(item['attachments'])
|
|
||||||
)
|
|
||||||
if 'attachments' in item:
|
if 'attachments' in item:
|
||||||
attachments = item['attachments']
|
attachments = item['attachments']
|
||||||
size_field = 'size_in_bytes'
|
size_field = 'size_in_bytes'
|
||||||
|
@ -85,6 +81,10 @@ class GetPeertubeVideos:
|
||||||
json.dumps(item, indent=2)
|
json.dumps(item, indent=2)
|
||||||
)
|
)
|
||||||
return None
|
return None
|
||||||
|
self._log.debug(
|
||||||
|
"%s attachments (videos) for this item",
|
||||||
|
len(attachments)
|
||||||
|
)
|
||||||
for attachment in attachments:
|
for attachment in attachments:
|
||||||
if attachment[size_field] > selected[size_field]:
|
if attachment[size_field] > selected[size_field]:
|
||||||
selected = attachment
|
selected = attachment
|
||||||
|
|
Loading…
Reference in a new issue