Remove test code
This commit is contained in:
@@ -1147,14 +1147,6 @@ class WebInterface(object):
|
|||||||
pms_connect = pmsconnect.PmsConnect()
|
pms_connect = pmsconnect.PmsConnect()
|
||||||
result = pms_connect.get_server_children()
|
result = pms_connect.get_server_children()
|
||||||
|
|
||||||
if plexpy.CONFIG.HOME_LIBRARY_CARDS == '':
|
|
||||||
library_keys = ['library_statistics']
|
|
||||||
for library in result['libraries_list']:
|
|
||||||
library_keys.append(library['key'])
|
|
||||||
|
|
||||||
plexpy.CONFIG.HOME_LIBRARY_CARDS = ', '.join(library_keys)
|
|
||||||
plexpy.CONFIG.write()
|
|
||||||
|
|
||||||
if result:
|
if result:
|
||||||
cherrypy.response.headers['Content-type'] = 'application/json'
|
cherrypy.response.headers['Content-type'] = 'application/json'
|
||||||
return json.dumps(result)
|
return json.dumps(result)
|
||||||
|
Reference in New Issue
Block a user