Merge pull request #999 from Hellowlol/patch-1

Add missing CONFIG for API get_apikey
This commit is contained in:
JonnyWong16 2017-03-21 08:12:38 -07:00 committed by GitHub
commit 651125ef2c

View file

@ -407,7 +407,7 @@ General optional parameters:
data = None data = None
apikey = hashlib.sha224(str(random.getrandbits(256))).hexdigest()[0:32] apikey = hashlib.sha224(str(random.getrandbits(256))).hexdigest()[0:32]
if plexpy.CONFIG.HTTP_USERNAME and plexpy.CONFIG.HTTP_PASSWORD: if plexpy.CONFIG.HTTP_USERNAME and plexpy.CONFIG.HTTP_PASSWORD:
if username == plexpy.HTTP_USERNAME and password == plexpy.CONFIG.HTTP_PASSWORD: if username == plexpy.CONFIG.HTTP_USERNAME and password == plexpy.CONFIG.HTTP_PASSWORD:
if plexpy.CONFIG.API_KEY: if plexpy.CONFIG.API_KEY:
data = plexpy.CONFIG.API_KEY data = plexpy.CONFIG.API_KEY
else: else: