mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-30 19:40:08 -07:00
Fix export download not including images
This commit is contained in:
parent
b9f04ac71a
commit
fe388e903d
1 changed files with 6 additions and 7 deletions
|
@ -1928,14 +1928,13 @@ class Export(object):
|
|||
self.file_size += os.path.getsize(filepath)
|
||||
|
||||
def _exported_images(self, title):
|
||||
images_dirpath = get_export_dirpath(self.directory, images_directory=title)
|
||||
dirpath = get_export_dirpath(self.directory)
|
||||
|
||||
if os.path.exists(images_dirpath):
|
||||
for f in os.listdir(images_dirpath):
|
||||
if f.endswith('.thumb.jpg'):
|
||||
self.exported_thumb = True
|
||||
elif f.endswith('.art.jpg'):
|
||||
self.exported_art = True
|
||||
for root, dirs, files in os.walk(dirpath):
|
||||
if any(f.endswith('.thumb.jpg') for f in files):
|
||||
self.exported_thumb = True
|
||||
elif any(f.endswith('.art.jpg') for f in files):
|
||||
self.exported_art = True
|
||||
|
||||
def _media_type(self, obj):
|
||||
return 'photoalbum' if self.is_photoalbum(obj) else obj.type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue