From de6b15bb380395e4a99fea8f67f09adc3372dbe1 Mon Sep 17 00:00:00 2001 From: lavolp3 Date: Tue, 7 Apr 2020 10:01:48 +0000 Subject: [PATCH] Removed double loading of tracks. Solves #15 --- spotify_ripper/ripper.py | 2 +- spotify_ripper/web.py | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/spotify_ripper/ripper.py b/spotify_ripper/ripper.py index da50af8..72a7f40 100644 --- a/spotify_ripper/ripper.py +++ b/spotify_ripper/ripper.py @@ -248,7 +248,7 @@ def get_tracks_from_uri(uri): if self.abort.is_set(): break - tracks = list(get_tracks_from_uri(uri)) + #tracks = list(get_tracks_from_uri(uri)) if args.playlist_sync and self.current_playlist: self.sync = Sync(args, self) diff --git a/spotify_ripper/web.py b/spotify_ripper/web.py index 5a73a71..53f52f5 100755 --- a/spotify_ripper/web.py +++ b/spotify_ripper/web.py @@ -136,14 +136,13 @@ def get_albums_with_filter(args, uri): except KeyError as e: break print(str(len(album_uris)) + " albums found") - print(str(album_titles)) - WebAPI.cache_result(uri, album_uris) + #WebAPI.cache_result(WebAPI, uri, album_uris) return album_uris # check for cached result - cached_result = self.get_cached_result(uri) - if cached_result is not None: - return cached_result + #cached_result = self.get_cached_result(uri) + #if cached_result is not None: + # return cached_result """ using spotipy for cover download, not working yet def get_cover_url(album_uri):