mirror of
https://github.com/robweber/xbmcbackup.git
synced 2026-05-26 01:01:22 +02:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8cbca67378 |
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<addon id="script.xbmcbackup"
|
<addon id="script.xbmcbackup"
|
||||||
name="Backup" version="1.7.1~beta1" provider-name="robweber">
|
name="Backup" version="1.7.0" provider-name="robweber">
|
||||||
<requires>
|
<requires>
|
||||||
<import addon="xbmc.python" version="3.0.0"/>
|
<import addon="xbmc.python" version="3.0.0"/>
|
||||||
<import addon="script.module.dateutil" version="2.8.0" />
|
<import addon="script.module.dateutil" version="2.8.0" />
|
||||||
|
|||||||
@@ -4,21 +4,6 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
||||||
|
|
||||||
## Unreleased
|
|
||||||
|
|
||||||
### Added
|
|
||||||
|
|
||||||
- `utils.getSettingStripped` to trim whitespace around setting strings
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
- Dropbox Secret and App Key are trimmed on loading - thanks @rjclark99
|
|
||||||
- added additional dialog information when gathering files for a Restore. This doesn't fix the speed which these happen since that is related to the platform but does provide more info that it's working.
|
|
||||||
|
|
||||||
### Fixed
|
|
||||||
|
|
||||||
- issue where Zip file restores were failing due to a missing `is_dir` attribute
|
|
||||||
|
|
||||||
## [Version 1.7.0](https://github.com/robweber/xbmcbackup/compare/matrix-1.6.8...robweber:matrix-1.7.0)
|
## [Version 1.7.0](https://github.com/robweber/xbmcbackup/compare/matrix-1.6.8...robweber:matrix-1.7.0)
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -629,11 +629,3 @@ msgstr ""
|
|||||||
msgctxt "#30161"
|
msgctxt "#30161"
|
||||||
msgid "Amend a string to the end of each backup folder or ZIP file"
|
msgid "Amend a string to the end of each backup folder or ZIP file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgctxt "#30162"
|
|
||||||
msgid "this could take some time"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
msgctxt "#30163"
|
|
||||||
msgid "Current folder"
|
|
||||||
msgstr ""
|
|
||||||
|
|||||||
@@ -44,8 +44,8 @@ class DropboxAuthorizer:
|
|||||||
APP_SECRET = ""
|
APP_SECRET = ""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.APP_KEY = utils.getSettingStringStripped('dropbox_key')
|
self.APP_KEY = utils.getSetting('dropbox_key')
|
||||||
self.APP_SECRET = utils.getSettingStringStripped('dropbox_secret')
|
self.APP_SECRET = utils.getSetting('dropbox_secret')
|
||||||
|
|
||||||
def setup(self):
|
def setup(self):
|
||||||
result = True
|
result = True
|
||||||
|
|||||||
@@ -228,7 +228,7 @@ class XbmcBackup:
|
|||||||
# copy just this file from the remote vfs
|
# copy just this file from the remote vfs
|
||||||
self.transferSize = self.remote_vfs.fileSize(self.remote_base_path + self.restore_point)
|
self.transferSize = self.remote_vfs.fileSize(self.remote_base_path + self.restore_point)
|
||||||
zipFile = []
|
zipFile = []
|
||||||
zipFile.append({'file': self.remote_base_path + self.restore_point, 'size': self.transferSize, 'is_dir': False})
|
zipFile.append({'file': self.remote_base_path + self.restore_point, 'size': self.transferSize})
|
||||||
|
|
||||||
# set transfer size
|
# set transfer size
|
||||||
self.transferLeft = self.transferSize
|
self.transferLeft = self.transferSize
|
||||||
@@ -316,7 +316,6 @@ class XbmcBackup:
|
|||||||
self.xbmc_vfs.set_root(xbmcvfs.translatePath(aDir['path']))
|
self.xbmc_vfs.set_root(xbmcvfs.translatePath(aDir['path']))
|
||||||
if(self.remote_vfs.exists(self.remote_vfs.root_path + aDir['name'] + '/')):
|
if(self.remote_vfs.exists(self.remote_vfs.root_path + aDir['name'] + '/')):
|
||||||
# walk the directory
|
# walk the directory
|
||||||
self.progressBar.updateProgress(0, f"{utils.getString(30049)}....{utils.getString(30162)}\n{utils.getString(30163)}: {aDir['name']}")
|
|
||||||
fileManager.walkTree(self.remote_vfs.root_path + aDir['name'] + '/')
|
fileManager.walkTree(self.remote_vfs.root_path + aDir['name'] + '/')
|
||||||
self.transferSize = self.transferSize + fileManager.fileSize()
|
self.transferSize = self.transferSize + fileManager.fileSize()
|
||||||
|
|
||||||
|
|||||||
@@ -30,8 +30,6 @@ def showNotification(message):
|
|||||||
def getSetting(name):
|
def getSetting(name):
|
||||||
return __Addon.getSetting(name)
|
return __Addon.getSetting(name)
|
||||||
|
|
||||||
def getSettingStringStripped(name):
|
|
||||||
return __Addon.getSettingString(name).strip()
|
|
||||||
|
|
||||||
def getSettingBool(name):
|
def getSettingBool(name):
|
||||||
return bool(__Addon.getSettingBool(name))
|
return bool(__Addon.getSettingBool(name))
|
||||||
|
|||||||
Reference in New Issue
Block a user