def __init__(self, config, audio):
        super().__init__()
        self.config = config
        self.remote = SoundCloudClient(config)
        self.library = SoundCloudLibraryProvider(backend=self)
        self.playback = SoundCloudPlaybackProvider(audio=audio, backend=self)

        self.uri_schemes = ["soundcloud", "sc"]
Exemple #2
0
 def setUp(self):
     config = SoundCloudExtension().get_config_schema()
     config['auth_token'] = '1-35204-61921957-55796ebef403996'
     # using this user http://maildrop.cc/inbox/mopidytestuser
     self.backend = actor.SoundCloudBackend.start(config={
         'soundcloud': config
     },
                                                  audio=None).proxy()
     self.library = SoundCloudLibraryProvider(backend=self.backend)