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

Compare commits

..

No commits in common. "6601920f69924304dc0198193c1857a87a5ee0fc" and "28d43d00cb8d0fbae5750fe3eb8125b832c87a2a" have entirely different histories.

2 changed files with 4 additions and 12 deletions

View File

@ -320,8 +320,7 @@ def post_scrobble(
length:int=None,
time:int=None,
nofix=None,
auth_result=None,
**extra_kwargs):
auth_result=None):
"""Submit a new scrobble.
:param string artist: Artist. Can be submitted multiple times as query argument for multiple artists.
@ -359,22 +358,15 @@ def post_scrobble(
)
if result:
response = {
return {
'status': 'success',
'track': {
'artists':result['track']['artists'],
'title':result['track']['title']
}
}
if extra_kwargs:
response['warnings'] = [
{'type':'invalid_keyword_ignored','value':k}
for k in extra_kwargs
]
else:
response = {"status":"failure"}
return response
return {"status":"failure"}

View File

@ -40,7 +40,7 @@ full = [
]
[project.scripts]
maloja = "maloja.__main__:main"
maloja = "maloja:main"
[build-system]
requires = ["flit_core >=3.2,<4"]