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

Removed GET scrobbling

This commit is contained in:
krateng 2022-04-06 17:44:59 +02:00
parent 1257768e33
commit 24c65d4acc

View File

@ -222,20 +222,6 @@ def compare_external(**keys):
return database.compare(keys["remote"])
@api.get("newscrobble")
@authenticated_api_with_alternate(api_key_correct)
def get_post_scrobble(artist:Multi,**keys):
"""DEPRECATED. Use the equivalent POST method instead."""
artists = artist
title = keys.get("title")
album = keys.get("album")
duration = keys.get("seconds")
time = keys.get("time")
if time is not None: time = int(time)
return database.incoming_scrobble(artists,title,album=album,duration=duration,time=time)
@api.post("newscrobble")
@authenticated_api_with_alternate(api_key_correct)
def post_scrobble(artist:Multi=None,**keys):