From 47f13028c488ef302d001e2e44c7d79479f4e323 Mon Sep 17 00:00:00 2001 From: Krateng Date: Mon, 17 Jun 2019 15:45:00 +0200 Subject: [PATCH] Fixed use of custom page sizes and more links --- htmlmodules.py | 14 +++++++------- website/artist.html | 2 +- website/track.html | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/htmlmodules.py b/htmlmodules.py index 9d95bcd..a7e63e1 100644 --- a/htmlmodules.py +++ b/htmlmodules.py @@ -66,7 +66,7 @@ def module_scrobblelist(page=0,perpage=100,max_=None,pictures=False,shortTimeDes html += "" - if max_ is None: html += module_paginate(page=page,pages=pages,**kwargs) + if max_ is None: html += module_paginate(page=page,pages=pages,perpage=perpage,**kwargs) return (html,len(scrobbles),representative) @@ -109,7 +109,7 @@ def module_pulse(page=0,perpage=100,max_=None,**kwargs): html += "" html += "" - if max_ is None: html += module_paginate(page=page,pages=pages,**kwargs) + if max_ is None: html += module_paginate(page=page,pages=pages,perpage=perpage,**kwargs) return html @@ -153,7 +153,7 @@ def module_performance(page=0,perpage=100,max_=None,**kwargs): html += "" html += "" - if max_ is None: html += module_paginate(page=page,pages=pages,**kwargs) + if max_ is None: html += module_paginate(page=page,pages=pages,perpage=perpage,**kwargs) return html @@ -230,7 +230,7 @@ def module_trackcharts(page=0,perpage=100,max_=None,**kwargs): prev = e html += "" - if max_ is None: html += module_paginate(page=page,pages=pages,**kwargs) + if max_ is None: html += module_paginate(page=page,pages=pages,perpage=perpage,**kwargs) return (html,representative) @@ -309,7 +309,7 @@ def module_artistcharts(page=0,perpage=100,max_=None,**kwargs): html += "" - if max_ is None: html += module_paginate(page=page,pages=pages,**kwargs) + if max_ is None: html += module_paginate(page=page,pages=pages,perpage=perpage,**kwargs) return (html, representative) @@ -528,9 +528,9 @@ def module_trackcharts_tiles(**kwargs): -def module_paginate(page,pages,**keys): +def module_paginate(page,pages,perpage,**keys): - unchangedkeys = internal_to_uri({**keys}) + unchangedkeys = internal_to_uri({**keys,"perpage":perpage}) html = "
" diff --git a/website/artist.html b/website/artist.html index 7853411..135281e 100644 --- a/website/artist.html +++ b/website/artist.html @@ -16,7 +16,7 @@

KEY_ARTISTNAME

- KEY_POSITION + KEY_POSITION
KEY_ASSOCIATED

KEY_SCROBBLES Scrobbles

diff --git a/website/track.html b/website/track.html index 4299771..bc99a11 100644 --- a/website/track.html +++ b/website/track.html @@ -16,7 +16,7 @@ KEY_ARTISTS
-

KEY_TRACKTITLE

KEY_CERTS KEY_POSITION +

KEY_TRACKTITLE

KEY_CERTS KEY_POSITION

KEY_SCROBBLES Scrobbles