mirror of
https://github.com/krateng/maloja.git
synced 2025-08-07 09:01:26 -04:00
Added debugging for weird issue
This commit is contained in:
parent
cc536f026e
commit
ccf75898e7
@ -621,9 +621,16 @@ def album_info(dbconn=None,**keys):
|
|||||||
|
|
||||||
#scrobbles = get_scrobbles_num(track=track,timerange=alltime())
|
#scrobbles = get_scrobbles_num(track=track,timerange=alltime())
|
||||||
|
|
||||||
c = [e for e in alltimecharts if e["album"] == album][0]
|
try:
|
||||||
scrobbles = c["scrobbles"]
|
c = [e for e in alltimecharts if e["album"] == album][0]
|
||||||
position = c["rank"]
|
scrobbles = c["scrobbles"]
|
||||||
|
position = c["rank"]
|
||||||
|
except IndexError as e:
|
||||||
|
log(f"Error while finding album chart position for {album}",module="debug_special")
|
||||||
|
log(f"{e}",module="debug_special")
|
||||||
|
scrobbles, position = 0,0
|
||||||
|
|
||||||
|
|
||||||
cert = None
|
cert = None
|
||||||
threshold_gold, threshold_platinum, threshold_diamond = malojaconfig["SCROBBLES_GOLD_ALBUM","SCROBBLES_PLATINUM_ALBUM","SCROBBLES_DIAMOND_ALBUM"]
|
threshold_gold, threshold_platinum, threshold_diamond = malojaconfig["SCROBBLES_GOLD_ALBUM","SCROBBLES_PLATINUM_ALBUM","SCROBBLES_DIAMOND_ALBUM"]
|
||||||
if scrobbles >= threshold_diamond: cert = "diamond"
|
if scrobbles >= threshold_diamond: cert = "diamond"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user