When daemonized the PID advertised by the plugin (channel's name) was
the PID before the double fork and not the actual daemon's PID.
* Add randomness in Tags plugin artist selection
* Fixed issue with un-tagged titles (closes #40)
* Fixed "artist with quotes not found" (closes #41)
+ * Fixed bad pid in Uniq core plugin (closes #32)
-- kaliko <kaliko@azylum.org> UNRELEASED
def __init__(self, daemon):
Plugin.__init__(self, daemon)
- self.chan = 'mpd_sima:{0}.{1}'.format(getfqdn(), getpid())
+ self.chan = None
self.channels = []
self._registred = False
self.log.warning(' '.join(channels))
def sub_chan(self):
+ self.chan = 'mpd_sima:{0}.{1}'.format(getfqdn(), getpid())
self.log.debug('Registering as %s', self.chan)
try:
self.player.subscribe(self.chan)