Allow folder search timings to be tweaked (#682)

This commit is contained in:
Et0h 2024-05-26 19:19:36 +01:00
parent 25fabbcc50
commit 2cc95d6ef9
3 changed files with 13 additions and 3 deletions

View File

@ -1,5 +1,5 @@
version = '1.7.3'
revision = ''
version = '1.7.4'
revision = ' development'
milestone = 'Yoitsu'
release_number = '112'
release_number = '113'
projectURL = 'https://syncplay.pl/'

View File

@ -71,6 +71,9 @@ class SyncplayClient(object):
constants.SHOW_SAME_ROOM_OSD = config['showSameRoomOSD']
constants.SHOW_DURATION_NOTIFICATION = config['showDurationNotification']
constants.DEBUG_MODE = config['debug']
constants.FOLDER_SEARCH_FIRST_FILE_TIMEOUT = config['folderSearchFirstFileTimeout']
constants.FOLDER_SEARCH_TIMEOUT = config['folderSearchTimeout']
constants.FOLDER_SEARCH_DOUBLE_CHECK_INTERVAL = config['folderSearchDoubleCheckInterval']
self.controlpasswords = {}
self.lastControlPasswordAttempt = None

View File

@ -50,6 +50,9 @@ class ConfigurationGetter(object):
"slowOnDesync": True,
"fastforwardOnDesync": True,
"dontSlowDownWithMe": False,
"folderSearchFirstFileTimeout": constants.FOLDER_SEARCH_FIRST_FILE_TIMEOUT,
"folderSearchTimeout": constants.FOLDER_SEARCH_TIMEOUT,
"folderSearchDoubleCheckInterval": constants.FOLDER_SEARCH_DOUBLE_CHECK_INTERVAL,
"filenamePrivacyMode": constants.PRIVACY_SENDRAW_MODE,
"filesizePrivacyMode": constants.PRIVACY_SENDRAW_MODE,
"pauseOnLeave": False,
@ -163,6 +166,9 @@ class ConfigurationGetter(object):
"slowdownThreshold",
"rewindThreshold",
"fastforwardThreshold",
"folderSearchFirstFileTimeout",
"folderSearchTimeout",
"folderSearchDoubleCheckInterval",
"autoplayMinUsers",
"chatInputRelativeFontSize",
"chatInputFontWeight",
@ -188,6 +194,7 @@ class ConfigurationGetter(object):
"name", "room", "roomList", "playerPath",
"perPlayerArguments", "slowdownThreshold",
"rewindThreshold", "fastforwardThreshold",
"folderSearchFirstFileTimeout", "folderSearchTimeout", "folderSearchDoubleCheckInterval",
"slowOnDesync", "rewindOnDesync",
"fastforwardOnDesync", "dontSlowDownWithMe",
"forceGuiPrompt", "filenamePrivacyMode",