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.
6601920f69
...
28d43d00cb
|
@ -320,8 +320,7 @@ def post_scrobble(
|
||||||
length:int=None,
|
length:int=None,
|
||||||
time:int=None,
|
time:int=None,
|
||||||
nofix=None,
|
nofix=None,
|
||||||
auth_result=None,
|
auth_result=None):
|
||||||
**extra_kwargs):
|
|
||||||
"""Submit a new scrobble.
|
"""Submit a new scrobble.
|
||||||
|
|
||||||
:param string artist: Artist. Can be submitted multiple times as query argument for multiple artists.
|
:param string artist: Artist. Can be submitted multiple times as query argument for multiple artists.
|
||||||
|
@ -359,22 +358,15 @@ def post_scrobble(
|
||||||
)
|
)
|
||||||
|
|
||||||
if result:
|
if result:
|
||||||
response = {
|
return {
|
||||||
'status': 'success',
|
'status': 'success',
|
||||||
'track': {
|
'track': {
|
||||||
'artists':result['track']['artists'],
|
'artists':result['track']['artists'],
|
||||||
'title':result['track']['title']
|
'title':result['track']['title']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if extra_kwargs:
|
|
||||||
response['warnings'] = [
|
|
||||||
{'type':'invalid_keyword_ignored','value':k}
|
|
||||||
for k in extra_kwargs
|
|
||||||
]
|
|
||||||
else:
|
else:
|
||||||
response = {"status":"failure"}
|
return {"status":"failure"}
|
||||||
|
|
||||||
return response
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ full = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
maloja = "maloja.__main__:main"
|
maloja = "maloja:main"
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["flit_core >=3.2,<4"]
|
requires = ["flit_core >=3.2,<4"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user