From 24c65d4acc395c566571e1f1d4e0f7d373769413 Mon Sep 17 00:00:00 2001 From: krateng Date: Wed, 6 Apr 2022 17:44:59 +0200 Subject: [PATCH] Removed GET scrobbling --- maloja/apis/native_v1.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/maloja/apis/native_v1.py b/maloja/apis/native_v1.py index 70e02ad..5da7083 100644 --- a/maloja/apis/native_v1.py +++ b/maloja/apis/native_v1.py @@ -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):