From 16d8ed05751f8179ce3f3bdc96a786ee85a53dfd Mon Sep 17 00:00:00 2001 From: krateng Date: Thu, 14 Apr 2022 17:44:52 +0200 Subject: [PATCH] Fixed nofix argument for scrobbling --- maloja/apis/native_v1.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maloja/apis/native_v1.py b/maloja/apis/native_v1.py index f709a83..2a39b39 100644 --- a/maloja/apis/native_v1.py +++ b/maloja/apis/native_v1.py @@ -278,7 +278,7 @@ def post_scrobble( duration:int=None, length:int=None, time:int=None, - nofix:bool=False, + nofix=None, auth_result=None): """Submit a new scrobble. @@ -290,7 +290,7 @@ def post_scrobble( :param int duration: Actual listened duration of the scrobble in seconds. Optional. :param int length: Total length of the track in seconds. Optional. :param int time: UNIX timestamp of the scrobble. Optional, not needed if scrobble is at time of request. - :param boolean nofix: Skip server-side metadata parsing. Optional. + :param flag nofix: Skip server-side metadata parsing. Optional. """ rawscrobble = { @@ -310,7 +310,7 @@ def post_scrobble( rawscrobble, client='browser' if auth_result.get('doreah_native_auth_check') else auth_result.get('client'), api='native/v1', - fix=not nofix + fix=(nofix is None) ) if result: