mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-14 20:35:48 +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?"
|
||||
|
||||
msgctxt "#30045"
|
||||
msgid "Error: Remote path doesn't exist"
|
||||
msgstr "Error: Remote path doesn't exist"
|
||||
msgid "Error: Remote or zip file path doesn't exist"
|
||||
msgstr "Error: Remote or zip file path doesn't exist"
|
||||
|
||||
msgctxt "#30046"
|
||||
msgid "Starting"
|
||||
@ -596,3 +596,7 @@ msgstr ""
|
||||
msgctxt "#30151"
|
||||
msgid "Enable Verbose Logging"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#30152"
|
||||
msgid "Set Zip File Location"
|
||||
msgstr ""
|
||||
|
@ -50,7 +50,7 @@ class XbmcBackup:
|
||||
|
||||
def __init__(self):
|
||||
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()
|
||||
utils.log(utils.getString(30046))
|
||||
@ -70,7 +70,7 @@ class XbmcBackup:
|
||||
def remoteConfigured(self):
|
||||
result = True
|
||||
|
||||
if(self.remote_base_path == ""):
|
||||
if(self.remote_base_path == "" or not xbmcvfs.exists(self.ZIP_TEMP_PATH)):
|
||||
result = False
|
||||
|
||||
return result
|
||||
@ -380,6 +380,7 @@ class XbmcBackup:
|
||||
|
||||
utils.log(utils.getString(30047) + ": " + self.xbmc_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
|
||||
self.progressBar = BackupProgressBar(progressOverride)
|
||||
|
@ -9,6 +9,20 @@
|
||||
<default>false</default>
|
||||
<control type="toggle" />
|
||||
</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 -->
|
||||
<setting id="backup_rotation" type="integer" label="30026" help="">
|
||||
<level>0</level>
|
||||
|
Loading…
Reference in New Issue
Block a user