Skip to content

Instantly share code, notes, and snippets.

@kingosticks
Created September 26, 2016 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kingosticks/7210e94241e415cd80ccbd56cb185dbf to your computer and use it in GitHub Desktop.
Save kingosticks/7210e94241e415cd80ccbd56cb185dbf to your computer and use it in GitHub Desktop.
# In mopidy/mpd/actor.py
class MpdFrontend(pykka.ThreadingActor, CoreListener):
def __init__(self, config, core):
super(MpdFrontend, self).__init__()
self.hostname = network.format_hostname(config['mpd']['hostname'])
self.port = config['mpd']['port']
self.uri_map = uri_mapper.MpdUriMapper(core)
self.zeroconf_name = config['mpd']['zeroconf']
self.zeroconf_service = None
# Horrible hack here:
core.library
core.history
core.mixer
core.playback
core.playlists
core.tracklist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment