Use "==" when comparing strings

This commit is contained in:
Jack Wilsdon 2019-01-31 00:15:55 +00:00
parent 768770d561
commit 2bc04bb605
No known key found for this signature in database
GPG key ID: D657C01A7BC820AE

View file

@ -78,7 +78,7 @@ class SubsonicUpdate(BeetsPlugin):
'v': '1.15.0', # Subsonic 6.1 and newer.
'c': 'beets'
}
if contextpath is '/':
if contextpath == '/':
contextpath = ''
url = "http://{}:{}{}/rest/startScan".format(host, port, contextpath)
response = requests.post(url, params=payload)