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

Fixed scrobble bug

This commit is contained in:
Krateng 2020-09-04 14:32:11 +02:00
parent 8b4e9609e9
commit 52a9faae90
No known key found for this signature in database
GPG Key ID: 46735607861C6FCE
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@ author = {
"email":"maloja@krateng.dev", "email":"maloja@krateng.dev",
"github": "krateng" "github": "krateng"
} }
version = 2,9,0 version = 2,9,1
versionstr = ".".join(str(n) for n in version) versionstr = ".".join(str(n) for n in version)
links = { links = {
"pypi":"malojaserver", "pypi":"malojaserver",

View File

@ -198,7 +198,8 @@ def compare_external(**keys):
@api.post("newscrobble") @api.post("newscrobble")
@authenticated_api_with_alternate(api_key_correct) @authenticated_api_with_alternate(api_key_correct)
def post_scrobble(artist:Multi,**keys): def post_scrobble(artist:Multi,**keys):
artists = "/".join(artist) #artists = "/".join(artist)
artists = artist
title = keys.get("title") title = keys.get("title")
album = keys.get("album") album = keys.get("album")
duration = keys.get("seconds") duration = keys.get("seconds")