1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Added time selector to scrobbles and fixed bug with multiartist tracks

This commit is contained in:
Krateng
2019-04-02 12:59:42 +02:00
parent aa56e11d85
commit c96103ad28
4 changed files with 49 additions and 40 deletions

View File

@@ -16,6 +16,8 @@
<h1>Scrobbles</h1><br/>
<span>KEY_LIMITS</span>
<p class="stats">KEY_SCROBBLES Scrobbles</p>
<br/>
KEY_FILTERSELECTOR
</td>
</tr>

View File

@@ -5,7 +5,7 @@ import database
def instructions(keys):
from utilities import getArtistImage, getTrackImage
from htmlgenerators import artistLink, artistLinks, trackLink, KeySplit
from htmlmodules import module_scrobblelist
from htmlmodules import module_scrobblelist, module_filterselection
from malojatime import range_desc
@@ -27,6 +27,8 @@ def instructions(keys):
limitstring += " " + range_desc(**timekeys)
html_filterselector = module_filterselection(keys)
html, amount, rep = module_scrobblelist(**filterkeys,**timekeys,**amountkeys)
@@ -44,6 +46,10 @@ def instructions(keys):
pushresources = [{"file":imgurl,"type":"image"}] if imgurl.startswith("/") else []
replace = {"KEY_SCROBBLELIST":html,"KEY_SCROBBLES":str(amount),"KEY_IMAGEURL":imgurl,"KEY_LIMITS":limitstring}
replace = {"KEY_SCROBBLELIST":html,
"KEY_SCROBBLES":str(amount),
"KEY_IMAGEURL":imgurl,
"KEY_LIMITS":limitstring,
"KEY_FILTERSELECTOR":html_filterselector}
return (replace,pushresources)