mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Check images exported after export
This commit is contained in:
parent
2b8fea8bf8
commit
aa9dbafa28
1 changed files with 9 additions and 0 deletions
|
@ -1667,12 +1667,21 @@ class Export(object):
|
|||
|
||||
self.file_size = os.path.getsize(filepath)
|
||||
|
||||
exported_thumb = exported_art = False
|
||||
if os.path.exists(images_folder):
|
||||
for f in os.listdir(images_folder):
|
||||
if f.endswith('.thumb.jpg'):
|
||||
exported_thumb = True
|
||||
elif f.endswith('.art.jpg'):
|
||||
exported_art = True
|
||||
|
||||
image_path = os.path.join(images_folder, f)
|
||||
if os.path.isfile(image_path):
|
||||
self.file_size += os.path.getsize(image_path)
|
||||
|
||||
self.thumb_level = self.thumb_level if exported_thumb else 0
|
||||
self.art_level = self.art_level if exported_art else 0
|
||||
|
||||
self.success = True
|
||||
logger.info("Tautulli Exporter :: Successfully exported to '%s'", filepath)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue