From e8a87cb8a5e2f63850ff3c02ed5aa8ee388460ed Mon Sep 17 00:00:00 2001 From: Krateng Date: Fri, 4 Sep 2020 18:24:55 +0200 Subject: [PATCH] Fixed bug in readable uri timerange keys --- maloja/__pkginfo__.py | 2 +- maloja/malojatime.py | 2 +- maloja/web/jinja/admin_setup.jinja | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/maloja/__pkginfo__.py b/maloja/__pkginfo__.py index 5c78e10..3a1065e 100644 --- a/maloja/__pkginfo__.py +++ b/maloja/__pkginfo__.py @@ -5,7 +5,7 @@ author = { "email":"maloja@krateng.dev", "github": "krateng" } -version = 2,9,3 +version = 2,9,4 versionstr = ".".join(str(n) for n in version) links = { "pypi":"malojaserver", diff --git a/maloja/malojatime.py b/maloja/malojatime.py index 6307e21..43379c6 100644 --- a/maloja/malojatime.py +++ b/maloja/malojatime.py @@ -468,7 +468,7 @@ def time_fix(t): except: pass - if isinstance(t[1],str) and t[1].startswith("W"): + if isinstance(t[1],str) and t[1].startswith("w"): try: year = int(t[0]) weeknum = int(t[1][1:]) diff --git a/maloja/web/jinja/admin_setup.jinja b/maloja/web/jinja/admin_setup.jinja index 7c7aced..ce6581d 100644 --- a/maloja/web/jinja/admin_setup.jinja +++ b/maloja/web/jinja/admin_setup.jinja @@ -60,7 +60,7 @@

If you use another browser or another music player, you could try to code your own extension. The API is super simple! Just send a POST HTTP request to - yourserver.tld/api/newscrobble + yourserver.tld/apis/mlj_1/newscrobble (make sure to use the public URL) with the key-value-pairs