1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00
This commit is contained in:
Krateng 2018-11-29 16:09:46 +01:00
parent 4ec2f4a118
commit 72ba0a9a72

View File

@ -48,6 +48,7 @@ def getTrackObject(o):
def createScrobble(artists,title,time):
while (time in timestamps):
time += 1
timestamps.add(time)
i = getTrackID(artists,title)
obj = (i,time,False)
SCROBBLES.append(obj)
@ -55,6 +56,7 @@ def createScrobble(artists,title,time):
def readScrobble(artists,title,time):
while (time in timestamps):
time += 1
timestamps.add(time)
i = getTrackID(artists,title)
obj = (i,time,True)
SCROBBLES.append(obj)