Fix export download not including images

This commit is contained in:
JonnyWong16 2022-01-30 17:26:08 -08:00
commit fe388e903d
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -1928,13 +1928,12 @@ 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'):
for root, dirs, files in os.walk(dirpath):
if any(f.endswith('.thumb.jpg') for f in files):
self.exported_thumb = True
elif f.endswith('.art.jpg'):
elif any(f.endswith('.art.jpg') for f in files):
self.exported_art = True
def _media_type(self, obj):