Add to downloaded files
This commit is contained in:
parent
15bf7472b6
commit
318ea7fd2d
1 changed files with 3 additions and 0 deletions
|
@ -153,6 +153,8 @@ class GetPeertubeVideos:
|
|||
with open(full_thumb_file_name, mode='wb') as thumb_file:
|
||||
thumb_file.write(thumb_bytes)
|
||||
self._add_thumbnail_to_video(full_file_name, full_thumb_file_name)
|
||||
self.downloaded_items.append(item['id'])
|
||||
self._write_downloaded_items()
|
||||
else:
|
||||
self._log.debug(
|
||||
"Item already downloaded, skipping."
|
||||
|
@ -195,6 +197,7 @@ class GetPeertubeVideos:
|
|||
result.stdout,
|
||||
result.stderr
|
||||
)
|
||||
return None
|
||||
os.remove(video_file)
|
||||
os.rename(f"{video_file}_with_thumb.{file_extension}", video_file)
|
||||
|
||||
|
|
Loading…
Reference in a new issue