MCPcopy Create free account
hub / github.com/Syncplay/syncplay / __init__

Method __init__

syncplay/client.py:2199–2213  ·  view source on GitHub ↗
(self, client)

Source from the content-addressed store, hash-verified

2197
2198class FileSwitchManager(object):
2199 def __init__(self, client):
2200 self._client = client
2201 self.mediaFilesCache = {}
2202 self.filenameWatchlist = []
2203 self.currentDirectory = None
2204 self.mediaDirectories = client.getConfig().get('mediaSearchDirectories')
2205 self.lock = threading.Lock()
2206 self.folderSearchEnabled = True
2207 self.directorySearchError = None
2208 self.newInfo = False
2209 self.currentlyUpdating = False
2210 self.newWatchlist = []
2211 self.fileSwitchTimer = task.LoopingCall(self.updateInfo)
2212 self.fileSwitchTimer.start(constants.FOLDER_SEARCH_DOUBLE_CHECK_INTERVAL, True)
2213 self.mediaDirectoriesNotFound = []
2214
2215 def setClient(self, newClient):
2216 self._client = newClient

Callers

nothing calls this directly

Calls 2

getConfigMethod · 0.80
startMethod · 0.80

Tested by

no test coverage detected