Skip to content

Commit 4094fe8

Browse files
authored
Merge pull request #22 from tr33k/fix/main-py-bug
Fix bug with undefined 'result' in main.py
2 parents 685af89 + 9f02308 commit 4094fe8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

soundclouddownloader/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,11 @@ def main() -> None:
210210
zip_file = downloader.download_playlist(
211211
playlist_url, output_dir, max_workers=3, should_zip=should_zip
212212
)
213-
if result:
213+
if zip_file:
214214
if should_zip:
215-
logger.success(f"Playlist downloaded and zipped: {result}")
215+
logger.success(f"Playlist downloaded and zipped: {zip_file}")
216216
else:
217-
logger.success(f"Playlist downloaded to directory: {result}")
217+
logger.success(f"Playlist downloaded to directory: {zip_file}")
218218
else:
219219
logger.error("Failed to download playlist.")
220220
sys.stdout.flush()

0 commit comments

Comments
 (0)