diff --git a/beetsplug/mpdstats.py b/beetsplug/mpdstats.py index 8ae3eb783..0f78ee561 100644 --- a/beetsplug/mpdstats.py +++ b/beetsplug/mpdstats.py @@ -331,7 +331,7 @@ class MPDStatsPlugin(plugins.BeetsPlugin): 'music_directory': config['directory'].as_filename(), 'rating': True, 'rating_mix': 0.75, - 'host': u'localhost', + 'host': os.environ.get('MPD_HOST', u'localhost'), 'port': 6600, 'password': u'', })