nice
This commit is contained in:
parent
426ad381de
commit
b6d88d435a
6 changed files with 112 additions and 128 deletions
|
|
@ -33,6 +33,8 @@ class Parser:
|
|||
self.library.name = "Spotify"
|
||||
self.library.auto_score()
|
||||
|
||||
self.score_tracks()
|
||||
|
||||
return self.library
|
||||
|
||||
|
||||
|
|
@ -122,3 +124,8 @@ class Parser:
|
|||
self.library.artists.append(artist)
|
||||
|
||||
return artist
|
||||
|
||||
def score_tracks(self):
|
||||
for idx, track in enumerate(self.library.top_tracks):
|
||||
score = len(self.library.top_tracks) - idx
|
||||
track.auto_score = score
|
||||
Loading…
Add table
Add a link
Reference in a new issue