Fixed output path of generate_archive

This commit is contained in:
Bryan Bailey
2022-03-14 23:40:22 -04:00
parent 9b8bca955b
commit abe2015bcf

View File

@@ -44,7 +44,6 @@ class Comic(Scrapable):
@property @property
def filelist(self): def filelist(self):
comics = self.__parse_soup() comics = self.__parse_soup()
for comic in comics: print(comic)
return [comic for comic in list(map(self.__get_image_src, comics)) if not comic.endswith(skippable_images)] return [comic for comic in list(map(self.__get_image_src, comics)) if not comic.endswith(skippable_images)]
@@ -98,7 +97,7 @@ class ComicArchiver:
if os.path.exists(os.path.join(self.worktree, f'{self.comic.title}{archive_format}')): if os.path.exists(os.path.join(self.worktree, f'{self.comic.title}{archive_format}')):
return return
output = shutil.make_archive(self.comic.title, 'zip', self.worktree) output = shutil.make_archive(os.path.join(self.worktree, self.comic.title), 'zip', self.worktree)
os.rename(output, os.path.join(self.worktree, f'{self.comic.title}{archive_format}')) os.rename(output, os.path.join(self.worktree, f'{self.comic.title}{archive_format}'))