This commit is contained in:
Nathan Thomas 2024-01-13 21:55:04 -08:00 committed by GitHub
parent df80d2708b
commit 52dc84cd13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 5 deletions

View File

@ -171,12 +171,15 @@ class PendingSingle(Pending):
)
return None
quality = getattr(self.config.session, self.client.source).quality
config = self.config.session
quality = getattr(config, self.client.source).quality
assert isinstance(quality, int)
folder = os.path.join(
self.config.session.downloads.folder,
self._format_folder(album),
)
parent = config.downloads.folder
if config.filepaths.add_singles_to_folder:
folder = os.path.join(parent, self._format_folder(album))
else:
folder = parent
os.makedirs(folder, exist_ok=True)
embedded_cover_path, downloadable = await asyncio.gather(