Skip to content

Commit de6b15b

Browse files
committed
Removed double loading of tracks. Solves #15
1 parent cb55716 commit de6b15b

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

spotify_ripper/ripper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def get_tracks_from_uri(uri):
248248
if self.abort.is_set():
249249
break
250250

251-
tracks = list(get_tracks_from_uri(uri))
251+
#tracks = list(get_tracks_from_uri(uri))
252252

253253
if args.playlist_sync and self.current_playlist:
254254
self.sync = Sync(args, self)

spotify_ripper/web.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,13 @@ def get_albums_with_filter(args, uri):
136136
except KeyError as e:
137137
break
138138
print(str(len(album_uris)) + " albums found")
139-
print(str(album_titles))
140-
WebAPI.cache_result(uri, album_uris)
139+
#WebAPI.cache_result(WebAPI, uri, album_uris)
141140
return album_uris
142141

143142
# check for cached result
144-
cached_result = self.get_cached_result(uri)
145-
if cached_result is not None:
146-
return cached_result
143+
#cached_result = self.get_cached_result(uri)
144+
#if cached_result is not None:
145+
# return cached_result
147146

148147
""" using spotipy for cover download, not working yet
149148
def get_cover_url(album_uri):

0 commit comments

Comments
 (0)