mirror of
https://github.com/krateng/maloja.git
synced 2025-07-09 03:04:07 -04:00
Just to be sure
This commit is contained in:
parent
5d92857642
commit
759e88db3e
@ -208,6 +208,9 @@ countas Wonyoung IVE
|
|||||||
countas Yujin IVE
|
countas Yujin IVE
|
||||||
countas Gaeul IVE
|
countas Gaeul IVE
|
||||||
|
|
||||||
|
# Pristin
|
||||||
|
countas Pristin V Pristin
|
||||||
|
|
||||||
# Popular Remixes
|
# Popular Remixes
|
||||||
artistintitle Areia Remix Areia
|
artistintitle Areia Remix Areia
|
||||||
artistintitle Areia Kpop Areia
|
artistintitle Areia Kpop Areia
|
||||||
|
Can't render this file because it has a wrong number of fields in line 5.
|
@ -87,7 +87,7 @@ if malojaconfig['USE_GLOBAL_CACHE']:
|
|||||||
cleared, kept = 0, 0
|
cleared, kept = 0, 0
|
||||||
for k in cache.keys():
|
for k in cache.keys():
|
||||||
# VERY BIG TODO: differentiate between None as in 'unlimited timerange' and None as in 'time doesnt matter here'!
|
# 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
|
cleared += 1
|
||||||
del cache[k]
|
del cache[k]
|
||||||
else:
|
else:
|
||||||
|
@ -436,13 +436,13 @@ def get_track_id(trackdict,create_new=True,update_album=False,dbconn=None):
|
|||||||
|
|
||||||
if not create_new: return None
|
if not create_new: return None
|
||||||
|
|
||||||
print("Creating new track")
|
#print("Creating new track")
|
||||||
op = DB['tracks'].insert().values(
|
op = DB['tracks'].insert().values(
|
||||||
**track_dict_to_db(trackdict,dbconn=dbconn)
|
**track_dict_to_db(trackdict,dbconn=dbconn)
|
||||||
)
|
)
|
||||||
result = dbconn.execute(op)
|
result = dbconn.execute(op)
|
||||||
track_id = result.inserted_primary_key[0]
|
track_id = result.inserted_primary_key[0]
|
||||||
print(track_id)
|
#print(track_id)
|
||||||
|
|
||||||
for artist_id in artist_ids:
|
for artist_id in artist_ids:
|
||||||
op = DB['trackartists'].insert().values(
|
op = DB['trackartists'].insert().values(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user