Cleanup all imports
* Should fix problems with needing to do inline imports
This commit is contained in:
@@ -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 """
|
||||
|
||||
|
||||
Reference in New Issue
Block a user