scrobble to maloja
Although it is possible to configure the server's URL, only the hostname part is taken into account.
The default URL for submitting a track to maloja is http://remote_host:42010/apis/listenbrainz/1/submit-listens. So the ListenBrainz server should be set to http://remote_host:42010/apis/listenbrainz. However this does not work because service.listenbrainz will use http://remote_host:42010/1/submit-listens.
I'm not sure if the following patch is the best way to fix this issue, but it solved the problem for me.
Thank you.
index 988b664..6cf4a5b 100644
--- a/utils.py
+++ b/utils.py
@@ -139,7 +139,7 @@ class ListenBrainz(object):
@property
def api_url(self) -> str:
"""Generate API URL based on server set in settings."""
- return urljoin(self.server, '/{}/'.format(self.api_version))
+ return (self.server + '/{}/'.format(self.api_version))
def _post(self,
endpoint: str,
Edited by Felicián Németh