mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-12-22 14:05:23 +01:00
fixes #83
This commit is contained in:
parent
9c1ecc254f
commit
e622a0455f
@ -173,8 +173,8 @@ msgid "Would you like to continue?"
|
|||||||
msgstr "Would you like to continue?"
|
msgstr "Would you like to continue?"
|
||||||
|
|
||||||
msgctxt "#30045"
|
msgctxt "#30045"
|
||||||
msgid "Error: Remote path doesn't exist"
|
msgid "Error: Remote or zip file path doesn't exist"
|
||||||
msgstr "Error: Remote path doesn't exist"
|
msgstr "Error: Remote or zip file path doesn't exist"
|
||||||
|
|
||||||
msgctxt "#30046"
|
msgctxt "#30046"
|
||||||
msgid "Starting"
|
msgid "Starting"
|
||||||
@ -596,3 +596,7 @@ msgstr ""
|
|||||||
msgctxt "#30151"
|
msgctxt "#30151"
|
||||||
msgid "Enable Verbose Logging"
|
msgid "Enable Verbose Logging"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgctxt "#30152"
|
||||||
|
msgid "Set Zip File Location"
|
||||||
|
msgstr ""
|
||||||
|
@ -50,7 +50,7 @@ class XbmcBackup:
|
|||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.xbmc_vfs = XBMCFileSystem(xbmcvfs.translatePath('special://home'))
|
self.xbmc_vfs = XBMCFileSystem(xbmcvfs.translatePath('special://home'))
|
||||||
self.ZIP_TEMP_PATH = xbmcvfs.translatePath('special://temp')
|
self.ZIP_TEMP_PATH = xbmcvfs.translatePath(utils.getSetting('zip_temp_path'))
|
||||||
|
|
||||||
self.configureRemote()
|
self.configureRemote()
|
||||||
utils.log(utils.getString(30046))
|
utils.log(utils.getString(30046))
|
||||||
@ -70,7 +70,7 @@ class XbmcBackup:
|
|||||||
def remoteConfigured(self):
|
def remoteConfigured(self):
|
||||||
result = True
|
result = True
|
||||||
|
|
||||||
if(self.remote_base_path == ""):
|
if(self.remote_base_path == "" or not xbmcvfs.exists(self.ZIP_TEMP_PATH)):
|
||||||
result = False
|
result = False
|
||||||
|
|
||||||
return result
|
return result
|
||||||
@ -380,6 +380,7 @@ class XbmcBackup:
|
|||||||
|
|
||||||
utils.log(utils.getString(30047) + ": " + self.xbmc_vfs.root_path)
|
utils.log(utils.getString(30047) + ": " + self.xbmc_vfs.root_path)
|
||||||
utils.log(utils.getString(30048) + ": " + self.remote_vfs.root_path)
|
utils.log(utils.getString(30048) + ": " + self.remote_vfs.root_path)
|
||||||
|
utils.log(utils.getString(30152) + ": " + utils.getSetting('zip_temp_path'))
|
||||||
|
|
||||||
# setup the progress bar
|
# setup the progress bar
|
||||||
self.progressBar = BackupProgressBar(progressOverride)
|
self.progressBar = BackupProgressBar(progressOverride)
|
||||||
|
@ -9,6 +9,20 @@
|
|||||||
<default>false</default>
|
<default>false</default>
|
||||||
<control type="toggle" />
|
<control type="toggle" />
|
||||||
</setting>
|
</setting>
|
||||||
|
<!-- zip folder staging path -->
|
||||||
|
<setting id="zip_temp_path" type="string" label="30152" help="">
|
||||||
|
<level>3</level>
|
||||||
|
<default>special://temp</default>
|
||||||
|
<constraints>
|
||||||
|
<allowempty>true</allowempty>
|
||||||
|
</constraints>
|
||||||
|
<dependencies>
|
||||||
|
<dependency type="visible" setting="compress_backups">true</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<control type="edit" format="string">
|
||||||
|
<heading>30152</heading>
|
||||||
|
</control>
|
||||||
|
</setting>
|
||||||
<!-- backup rotation -->
|
<!-- backup rotation -->
|
||||||
<setting id="backup_rotation" type="integer" label="30026" help="">
|
<setting id="backup_rotation" type="integer" label="30026" help="">
|
||||||
<level>0</level>
|
<level>0</level>
|
||||||
|
Loading…
Reference in New Issue
Block a user