diff options
author | Jonathan McCrohan <jmccroha@tau.local> | 2012-11-03 14:12:35 +0000 |
---|---|---|
committer | Jonathan McCrohan <jmccroha@tau.local> | 2012-11-03 14:12:35 +0000 |
commit | 3b5c2586df19d2322eaf67251ed1518c8682559d (patch) | |
tree | cff5a5c7e3d296bcea2c7360a3be0089132e55e7 | |
parent | 7e21582bc74a532c3b43fa226d0a6c9f7ef6c7e5 (diff) | |
parent | d2881e172435f194febad15ea0403ab5bc4f8fb3 (diff) | |
download | transmission-remote-cli-3b5c2586df19d2322eaf67251ed1518c8682559d.tar.gz |
Merge tag 'upstream/1.4.4'
Upstream version 1.4.4
Diffstat (limited to '')
-rw-r--r-- | NEWS | 5 | ||||
-rwxr-xr-x | transmission-remote-cli | 14 |
2 files changed, 13 insertions, 6 deletions
@@ -1,3 +1,8 @@ +1.4.4 2012-10-30 + BUGFIXES: + - Fix crash when changing priority of all files of a torrent + + 1.4.3 2012-10-18 - Support for Transmission version 2.73 diff --git a/transmission-remote-cli b/transmission-remote-cli index 3a3eac8..067b22c 100755 --- a/transmission-remote-cli +++ b/transmission-remote-cli @@ -16,7 +16,7 @@ # http://www.gnu.org/licenses/gpl-3.0.txt # ######################################################################## -VERSION = '1.4.3' +VERSION = '1.4.4' TRNSM_VERSION_MIN = '1.90' TRNSM_VERSION_MAX = '2.73' @@ -1953,17 +1953,19 @@ class Interface: break def create_filelist(self): - filelist = [] files = sorted(self.torrent_details['files'], cmp=lambda x,y: cmp(x['name'], y['name'])) + # Build new mapping between sorted local files and transmission-daemon's unsorted files + self.file_index_map = {} + for index,file in enumerate(files): + self.file_index_map[index] = self.torrent_details['files'].index(file) + + filelist = [] current_folder = [] current_depth = 0 - index = 0 pos = 0 pos_before_focus = 0 - # Build new mapping between sorted local files and transmission-daemon's unsorted files - self.file_index_map = {} + index = 0 for file in files: - self.file_index_map[index] = self.torrent_details['files'].index(file) f = file['name'].split('/') f_len = len(f) - 1 if f[:f_len] != current_folder: |