B"H url encoding: fix var name
This commit is contained in:
parent
9e8116713c
commit
f43711a346
1 changed files with 3 additions and 3 deletions
|
@ -65,10 +65,10 @@ class SubsonicApi():
|
||||||
di_params.update(c='mopidy')
|
di_params.update(c='mopidy')
|
||||||
di_params.update(v=self.connection.apiVersion)
|
di_params.update(v=self.connection.apiVersion)
|
||||||
if censor:
|
if censor:
|
||||||
params.update(u='*****', p='*****')
|
di_params.update(u='*****', p='*****')
|
||||||
else:
|
else:
|
||||||
params.update(u=self.username, p=self.password)
|
di_params.update(u=self.username, p=self.password)
|
||||||
return '{}/{}.view?{}'.format(self.url, view_name, urlencode(params))
|
return '{}/{}.view?{}'.format(self.url, view_name, urlencode(di_params))
|
||||||
|
|
||||||
def get_song_stream_uri(self, song_id):
|
def get_song_stream_uri(self, song_id):
|
||||||
return self.get_subsonic_uri('stream', dict(id=song_id))
|
return self.get_subsonic_uri('stream', dict(id=song_id))
|
||||||
|
|
Loading…
Add table
Reference in a new issue