Just to be sure

This commit is contained in:
krateng 2023-05-21 02:40:15 +02:00
parent 5d92857642
commit 759e88db3e
3 changed files with 6 additions and 3 deletions

View File

@ -208,6 +208,9 @@ countas Wonyoung IVE
countas Yujin IVE
countas Gaeul IVE
# Pristin
countas Pristin V Pristin
# Popular Remixes
artistintitle Areia Remix Areia
artistintitle Areia Kpop Areia

Can't render this file because it has a wrong number of fields in line 5.

View File

@ -87,7 +87,7 @@ if malojaconfig['USE_GLOBAL_CACHE']:
cleared, kept = 0, 0
for k in cache.keys():
# VERY BIG TODO: differentiate between None as in 'unlimited timerange' and None as in 'time doesnt matter here'!
if scrobbletime is None or (k[3] is None or scrobbletime >= k[3]) and (k[4] is None or scrobbletime <= k[4]):
if scrobbletime is None or ((k[3] is None or scrobbletime >= k[3]) and (k[4] is None or scrobbletime <= k[4])):
cleared += 1
del cache[k]
else:

View File

@ -436,13 +436,13 @@ def get_track_id(trackdict,create_new=True,update_album=False,dbconn=None):
if not create_new: return None
print("Creating new track")
#print("Creating new track")
op = DB['tracks'].insert().values(
**track_dict_to_db(trackdict,dbconn=dbconn)
)
result = dbconn.execute(op)
track_id = result.inserted_primary_key[0]
print(track_id)
#print(track_id)
for artist_id in artist_ids:
op = DB['trackartists'].insert().values(