def __init__(self,force=False):
self.conn = None
self.eventQueue = list()
self.event = threading.Event()
self.eventResults = dict()
self.loadOptional(force)
self.source = instantiateSource(force)
self.updateInProgress = False
self.updateFailed = False
self.settingsChanged = None
self.alreadyTriedUnlinking = False
self.channelList = list()
self.category = "Any"
profilePath = xbmc.translatePath(ADDON.getAddonInfo('profile'))
if not os.path.exists(profilePath):
os.makedirs(profilePath)
self.databasePath = os.path.join(profilePath, Database.SOURCE_DB)
threading.Thread(name='Database Event Loop', target=self.eventLoop).start()
评论列表
文章目录