parent
2e4e1e0aea
commit
bd192e4b6a
1 changed files with 13 additions and 21 deletions
|
@ -19,22 +19,19 @@ def remove_trailing_slash(path):
|
||||||
|
|
||||||
class Sync(object):
|
class Sync(object):
|
||||||
def __init__(self, entrypoint=False):
|
def __init__(self, entrypoint=False):
|
||||||
if entrypoint:
|
self.load()
|
||||||
self.load_entrypoint()
|
# Do we need to run a special library scan?
|
||||||
else:
|
self.run_lib_scan = None
|
||||||
self.load()
|
# Set if user decided to cancel sync
|
||||||
# Do we need to run a special library scan?
|
self.stop_sync = False
|
||||||
self.run_lib_scan = None
|
# Set during media playback if PKC should not do any syncs. Will NOT
|
||||||
# Set if user decided to cancel sync
|
# suspend synching of playstate progress
|
||||||
self.stop_sync = False
|
self.suspend_sync = False
|
||||||
# Set during media playback if PKC should not do any syncs. Will NOT
|
# Could we access the paths?
|
||||||
# suspend synching of playstate progress
|
self.path_verified = False
|
||||||
self.suspend_sync = False
|
# Set if a Plex-Kodi DB sync is being done - along with
|
||||||
# Could we access the paths?
|
# window('plex_dbScan') set to 'true'
|
||||||
self.path_verified = False
|
self.db_scan = False
|
||||||
# Set if a Plex-Kodi DB sync is being done - along with
|
|
||||||
# window('plex_dbScan') set to 'true'
|
|
||||||
self.db_scan = False
|
|
||||||
|
|
||||||
def load(self):
|
def load(self):
|
||||||
# Direct Paths (True) or Addon Paths (False)?
|
# Direct Paths (True) or Addon Paths (False)?
|
||||||
|
@ -83,8 +80,3 @@ class Sync(object):
|
||||||
# Shall Kodi show dialogs for syncing/caching images? (e.g. images left
|
# Shall Kodi show dialogs for syncing/caching images? (e.g. images left
|
||||||
# to sync)
|
# to sync)
|
||||||
self.image_sync_notifications = utils.settings('imageSyncNotifications') == 'true'
|
self.image_sync_notifications = utils.settings('imageSyncNotifications') == 'true'
|
||||||
|
|
||||||
def load_entrypoint(self):
|
|
||||||
self.direct_paths = utils.settings('useDirectPaths') == '1'
|
|
||||||
self.indicate_media_versions = utils.settings('indicate_media_versions') == "true"
|
|
||||||
self.path_verified = True
|
|
||||||
|
|
Loading…
Reference in a new issue