diff --git a/beets/player/bpd.py b/beets/player/bpd.py index 762d175b8..b4d4b6277 100755 --- a/beets/player/bpd.py +++ b/beets/player/bpd.py @@ -167,7 +167,7 @@ class Server(object): This is a generic superclass and doesn't support many commands. """ - def __init__(self, host, port=DEFAULT_PORT): + def __init__(self, host='', port=DEFAULT_PORT): """Create a new server bound to address `host` and listening on port `port`. """ @@ -632,7 +632,7 @@ class BGServer(Server): library. """ - def __init__(self, library, host='127.0.0.1', port=DEFAULT_PORT): + def __init__(self, library, host='', port=DEFAULT_PORT): from beets.player.gstplayer import GstPlayer super(BGServer, self).__init__(host, port) self.lib = library diff --git a/bts b/bts index 1a5cae0c6..e257045ca 100755 --- a/bts +++ b/bts @@ -56,7 +56,7 @@ def read(lib, criteria): lib.save() def bpd(lib, opts): - host = opts.pop(0) if opts else '127.0.0.1' + host = opts.pop(0) if opts else '' port = int(opts.pop(0)) if opts else 6600 import beets.player.bpd