Skip to content

Commit

Permalink
Removed double loading of tracks. Solves #15
Browse files Browse the repository at this point in the history
  • Loading branch information
lavolp3 committed Apr 7, 2020
1 parent cb55716 commit de6b15b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion spotify_ripper/ripper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 4 additions & 5 deletions spotify_ripper/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit de6b15b

Please sign in to comment.