mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-14 12:25:48 +01:00
added newline on progress bar when writing files
This commit is contained in:
parent
376f25f230
commit
c951dce5bd
@ -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.6.8" provider-name="robweber">
|
name="Backup" version="1.6.9~beta1" 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,6 +4,12 @@ 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
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- added new line between file size and file name, was unreadable on some systems due to string resizing
|
||||||
|
|
||||||
## [Version 1.6.8](https://github.com/robweber/xbmcbackup/compare/matrix-1.6.7...robweber:matrix-1.6.8)
|
## [Version 1.6.8](https://github.com/robweber/xbmcbackup/compare/matrix-1.6.7...robweber:matrix-1.6.8)
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
@ -415,10 +415,10 @@ class XbmcBackup:
|
|||||||
utils.log('Writing file: ' + aFile['file'])
|
utils.log('Writing file: ' + aFile['file'])
|
||||||
|
|
||||||
if(aFile['file'].startswith("-")):
|
if(aFile['file'].startswith("-")):
|
||||||
self._updateProgress('%s remaining, writing %s' % (utils.diskString(self.transferLeft), os.path.basename(aFile['file'][len(source.root_path):]) + "/"))
|
self._updateProgress('%s remaining\nwriting %s' % (utils.diskString(self.transferLeft), os.path.basename(aFile['file'][len(source.root_path):]) + "/"))
|
||||||
dest.mkdir(dest.root_path + aFile['file'][len(source.root_path) + 1:])
|
dest.mkdir(dest.root_path + aFile['file'][len(source.root_path) + 1:])
|
||||||
else:
|
else:
|
||||||
self._updateProgress('%s remaining, writing %s' % (utils.diskString(self.transferLeft), os.path.basename(aFile['file'][len(source.root_path):])))
|
self._updateProgress('%s remaining\nwriting %s' % (utils.diskString(self.transferLeft), os.path.basename(aFile['file'][len(source.root_path):])))
|
||||||
self.transferLeft = self.transferLeft - aFile['size']
|
self.transferLeft = self.transferLeft - aFile['size']
|
||||||
|
|
||||||
# copy the file
|
# copy the file
|
||||||
|
Loading…
Reference in New Issue
Block a user