1
0
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:
krateng 2019-09-14 14:47:09 +02:00 committed by GitHub
commit d8db927c8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,16 +29,16 @@ def instructions(keys):
if filterkeys.get("artist") is not None:
imgurl = getArtistImage(filterkeys.get("artist"))
limitstring = "by " + artistLink(filterkeys.get("artist"))
toptracks = ""
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"):
toptracks = module_trackcharts_tiles(timerange=timekeys["timerange"])
imgdiv = """<div style="background-image:url('favicon.png')"></div>"""
else:
imgurl = ""
toptracks = ""
imgdiv = '<div style="background-image:url('+imgurl+')"></div>'
if get_settings("CHARTS_DISPLAY_TILES"):
toptracks = module_trackcharts_tiles(timerange=timekeys["timerange"])
imgdiv = """<div style="background-image:url('favicon.png')"></div>"""
limitstring += " " + timekeys["timerange"].desc(prefix=True)