Added additional debug log when playing back a song from subsonic containing the url (without username and password).
This commit is contained in:
parent
296f55510d
commit
baaacf3e16
2 changed files with 11 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
from mopidy import backend
|
||||
from mopidy_subidy import uri
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
class SubidyPlaybackProvider(backend.PlaybackProvider):
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
@ -7,4 +10,7 @@ class SubidyPlaybackProvider(backend.PlaybackProvider):
|
|||
self.subsonic_api = self.backend.subsonic_api
|
||||
|
||||
def translate_uri(self, translate_uri):
|
||||
return self.subsonic_api.get_song_stream_uri(uri.get_song_id(translate_uri))
|
||||
song_id = uri.get_song_id(translate_uri)
|
||||
censored_url = self.subsonic_api.get_censored_song_stream_uri(song_id)
|
||||
logger.debug("Loading song from subsonic with url: '%s'" % censored_url)
|
||||
return self.subsonic_api.get_song_stream_uri(song_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue