Add PKC setting to disable check whether we can access a media file
This commit is contained in:
parent
8f41b5bf79
commit
9c8cb61c48
4 changed files with 13 additions and 1 deletions
|
@ -1078,6 +1078,11 @@ msgctxt "#39074"
|
||||||
msgid "TV Shows"
|
msgid "TV Shows"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
# PKC Settings - Sync
|
||||||
|
msgctxt "#39075"
|
||||||
|
msgid "Verify access to media files while synching"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
# Pop-up during initial sync
|
# Pop-up during initial sync
|
||||||
msgctxt "#39076"
|
msgctxt "#39076"
|
||||||
msgid "If you use several Plex libraries of one kind, e.g. \"Kids Movies\" and \"Parents Movies\", be sure to check the Wiki: https://goo.gl/JFtQV9"
|
msgid "If you use several Plex libraries of one kind, e.g. \"Kids Movies\" and \"Parents Movies\", be sure to check the Wiki: https://goo.gl/JFtQV9"
|
||||||
|
|
|
@ -69,6 +69,8 @@ class Sync(object):
|
||||||
self.run_lib_scan = None
|
self.run_lib_scan = None
|
||||||
# Set if user decided to cancel sync
|
# Set if user decided to cancel sync
|
||||||
self.stop_sync = False
|
self.stop_sync = False
|
||||||
|
# Do we check whether we can access a media file?
|
||||||
|
self.check_media_file_existence = False
|
||||||
# Could we access the paths?
|
# Could we access the paths?
|
||||||
self.path_verified = False
|
self.path_verified = False
|
||||||
|
|
||||||
|
@ -92,6 +94,8 @@ class Sync(object):
|
||||||
|
|
||||||
def load(self):
|
def load(self):
|
||||||
self.direct_paths = utils.settings('useDirectPaths') == '1'
|
self.direct_paths = utils.settings('useDirectPaths') == '1'
|
||||||
|
self.check_media_file_existence = \
|
||||||
|
utils.settings('check_media_file_existence') == '1'
|
||||||
self.enable_music = utils.settings('enableMusic') == 'true'
|
self.enable_music = utils.settings('enableMusic') == 'true'
|
||||||
self.artwork = utils.settings('usePlexArtwork') == 'true'
|
self.artwork = utils.settings('usePlexArtwork') == 'true'
|
||||||
self.replace_smb_path = utils.settings('replaceSMB') == 'true'
|
self.replace_smb_path = utils.settings('replaceSMB') == 'true'
|
||||||
|
|
|
@ -385,7 +385,9 @@ class Media(object):
|
||||||
path = 'smb:' + path.replace('\\', '/')
|
path = 'smb:' + path.replace('\\', '/')
|
||||||
if app.SYNC.escape_path:
|
if app.SYNC.escape_path:
|
||||||
path = utils.escape_path(path, app.SYNC.escape_path_safe_chars)
|
path = utils.escape_path(path, app.SYNC.escape_path_safe_chars)
|
||||||
if (app.SYNC.path_verified and not force_check) or omit_check:
|
if (not app.SYNC.check_media_file_existence
|
||||||
|
or (app.SYNC.path_verified and not force_check)
|
||||||
|
or omit_check):
|
||||||
return path
|
return path
|
||||||
|
|
||||||
# exist() needs a / or \ at the end to work for directories
|
# exist() needs a / or \ at the end to work for directories
|
||||||
|
|
|
@ -64,6 +64,7 @@
|
||||||
<setting id="dbSyncScreensaver" type="bool" label="39062" default="false" /><!--Sync when screensaver is deactivated-->
|
<setting id="dbSyncScreensaver" type="bool" label="39062" default="false" /><!--Sync when screensaver is deactivated-->
|
||||||
<setting id="dbSyncIndicator" label="30507" type="bool" default="true" /><!-- show syncing progress -->
|
<setting id="dbSyncIndicator" label="30507" type="bool" default="true" /><!-- show syncing progress -->
|
||||||
<setting id="playstate_sync_indicator" label="30523" type="bool" default="false" visible="eq(-1,true)" subsetting="true"/><!-- Also show sync progress for playstate and user data -->
|
<setting id="playstate_sync_indicator" label="30523" type="bool" default="false" visible="eq(-1,true)" subsetting="true"/><!-- Also show sync progress for playstate and user data -->
|
||||||
|
<setting id="check_media_file_existence" type="bool" label="39075" default="true" /><!--Verify access to media files while synching -->
|
||||||
<setting id="syncThreadNumber" type="slider" label="39003" default="10" option="int" range="1,1,30"/><!-- Number of simultaneous download threads -->
|
<setting id="syncThreadNumber" type="slider" label="39003" default="10" option="int" range="1,1,30"/><!-- Number of simultaneous download threads -->
|
||||||
<setting id="limitindex" type="slider" label="30515" default="200" option="int" range="50,50,1000"/><!-- Maximum items to request from the server at once -->
|
<setting id="limitindex" type="slider" label="30515" default="200" option="int" range="50,50,1000"/><!-- Maximum items to request from the server at once -->
|
||||||
<setting type="lsep" label="$LOCALIZE[136]" /><!-- Playlists -->
|
<setting type="lsep" label="$LOCALIZE[136]" /><!-- Playlists -->
|
||||||
|
|
Loading…
Reference in a new issue