mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Merge pull request #7 from ZackBoe/fix-tiles-artist-charts
Don't render tiles on artist track chart pages
This commit is contained in:
commit
d8db927c8e
@ -29,16 +29,16 @@ def instructions(keys):
|
|||||||
if filterkeys.get("artist") is not None:
|
if filterkeys.get("artist") is not None:
|
||||||
imgurl = getArtistImage(filterkeys.get("artist"))
|
imgurl = getArtistImage(filterkeys.get("artist"))
|
||||||
limitstring = "by " + artistLink(filterkeys.get("artist"))
|
limitstring = "by " + artistLink(filterkeys.get("artist"))
|
||||||
elif rep is not None:
|
|
||||||
imgurl = getTrackImage(rep["artists"],rep["title"])
|
|
||||||
else:
|
|
||||||
imgurl = ""
|
|
||||||
|
|
||||||
toptracks = ""
|
toptracks = ""
|
||||||
imgdiv = '<div style="background-image:url('+imgurl+')"></div>'
|
imgdiv = '<div style="background-image:url('+imgurl+')"></div>'
|
||||||
|
elif rep is not None:
|
||||||
|
imgurl = getTrackImage(rep["artists"],rep["title"])
|
||||||
if get_settings("CHARTS_DISPLAY_TILES"):
|
if get_settings("CHARTS_DISPLAY_TILES"):
|
||||||
toptracks = module_trackcharts_tiles(timerange=timekeys["timerange"])
|
toptracks = module_trackcharts_tiles(timerange=timekeys["timerange"])
|
||||||
imgdiv = """<div style="background-image:url('favicon.png')"></div>"""
|
imgdiv = """<div style="background-image:url('favicon.png')"></div>"""
|
||||||
|
else:
|
||||||
|
imgurl = ""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
limitstring += " " + timekeys["timerange"].desc(prefix=True)
|
limitstring += " " + timekeys["timerange"].desc(prefix=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user