def __init__(self, library, host, port, password):
        try:
            from beetsplug.bpd import gstplayer
        except __HOLE__ as e:
            # This is a little hacky, but it's the best I know for now.
            if e.args[0].endswith(' gst'):
                raise NoGstreamerError()
            else:
                raise
        super(Server, self).__init__(host, port, password)
        self.lib = library
        self.player = gstplayer.GstPlayer(self.play_finished)
        self.cmd_update(None)
dataset/ETHPy150Open beetbox/beets/beetsplug/bpd/__init__.py/Server.__init__