From 1aa74e0197e0b96d0f8cde49aa98e92ebaa4d289 Mon Sep 17 00:00:00 2001 From: Krzysztof Nasuta Date: Wed, 24 Jan 2024 18:49:16 +0100 Subject: [PATCH 1/4] fix: bulk download wait --- zotify/track.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zotify/track.py b/zotify/track.py index bb2af89..a739a3d 100644 --- a/zotify/track.py +++ b/zotify/track.py @@ -280,7 +280,7 @@ def download_track(mode: str, track_id: str, extra_keys=None, disable_progressba if not check_id: add_to_directory_song_ids(filedir, scraped_song_id, PurePath(filename).name, artists[0], name) - if not Zotify.CONFIG.get_bulk_wait_time(): + if Zotify.CONFIG.get_bulk_wait_time(): time.sleep(Zotify.CONFIG.get_bulk_wait_time()) except Exception as e: Printer.print(PrintChannel.ERRORS, '### SKIPPING: ' + song_name + ' (GENERAL DOWNLOAD ERROR) ###') From 1659fe667e22fc552f0c2f657e6fa3169c61e325 Mon Sep 17 00:00:00 2001 From: PhYrE Date: Wed, 24 Apr 2024 01:38:05 +0200 Subject: [PATCH 2/4] Don't crash out if a user includes an episode/podcast in a playlist. Previously, "'NoneType' object is not subscriptable" happened on certain playlists where the playlist includes a podcast episode or other non-track content. This checks it and skips over in such a case. --- zotify/playlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zotify/playlist.py b/zotify/playlist.py index 53c1941..919c47b 100644 --- a/zotify/playlist.py +++ b/zotify/playlist.py @@ -49,7 +49,7 @@ def get_playlist_info(playlist_id): def download_playlist(playlist): """Downloads all the songs from a playlist""" - playlist_songs = [song for song in get_playlist_songs(playlist[ID]) if song[TRACK][ID]] + playlist_songs = [song for song in get_playlist_songs(playlist[ID]) if song[TRACK] is not None and song[TRACK][ID]] p_bar = Printer.progress(playlist_songs, unit='song', total=len(playlist_songs), unit_scale=True) enum = 1 for song in p_bar: From fa2156b2a17627578860ee7ec2732e41d4f25afc Mon Sep 17 00:00:00 2001 From: Zotify Date: Sat, 1 Jun 2024 04:03:59 +0200 Subject: [PATCH 3/4] version bump --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 1706618..2989fb5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = zotify -version = 0.6.13 +version = 0.6.14 author = Zotify Contributors description = A highly customizable music and podcast downloader long_description = file: README.md From 83f50f9347ec2bf0ec6d330bed2077f8c73c46b7 Mon Sep 17 00:00:00 2001 From: azumukupoe <31339007+azumukupoe@users.noreply.github.com> Date: Wed, 10 Jul 2024 16:21:46 +0900 Subject: [PATCH 4/4] Install tabulate with support for wide characters --- requirements.txt | 2 +- setup.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 8bd5229..eadfc62 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,5 +4,5 @@ music_tag Pillow protobuf pwinput -tabulate +tabulate[widechars] tqdm diff --git a/setup.cfg b/setup.cfg index 2989fb5..d62b766 100644 --- a/setup.cfg +++ b/setup.cfg @@ -22,7 +22,7 @@ install_requires = Pillow protobuf==3.20.1 pwinput - tabulate + tabulate[widechars] tqdm [options.package_data]