Fix condition that checks if we should disable custom MusicBrainz server authentication.

This commit is contained in:
Tim
2015-02-19 11:48:10 +02:00
parent 24a52a294c
commit a68bcb6ee1

View File

@@ -78,8 +78,8 @@ def startmb():
musicbrainzngs.hpauth(mbuser, mbpass)
# Let us know if we disable custom authentication
if not headphones.CONFIG.CUSTOMAUTH:
musicbrainzngs.disable_hpauth();
if not headphones.CONFIG.CUSTOMAUTH and headphones.CONFIG.MIRROR == "custom":
musicbrainzngs.disable_hpauth()
logger.debug('Using the following server values: MBHost: %s, MBPort: %i, Sleep Interval: %i', mbhost, mbport, sleepytime)