Cleanup all imports

* Should fix problems with needing to do inline imports
This commit is contained in:
JonnyWong16 2016-05-07 11:26:00 -07:00
parent 600bca7e8b
commit f4e719749a
40 changed files with 256 additions and 145 deletions

View file

@ -23,15 +23,17 @@ import json
import os
import random
import re
import threading
import time
import traceback
import cherrypy
import xmltodict
import plexpy
import database
import logger
import plexpy
import pmsconnect
class API2:
@ -301,6 +303,10 @@ class API2:
self.msg = 'Updating plexpy'
self.result_type = 'success'
def refresh_libraries_list(self, **kwargs):
threading.Thread(target=pmsconnect.refresh_libraries).start()
self.result_type = 'success'
def _api_make_md(self):
""" Tries to make a API.md to simplify the api docs """