summaryrefslogtreecommitdiffstats
path: root/transmission-remote-cli
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccroha@tau.local>2012-11-03 14:12:35 +0000
committerJonathan McCrohan <jmccroha@tau.local>2012-11-03 14:12:35 +0000
commitd2881e172435f194febad15ea0403ab5bc4f8fb3 (patch)
treea80d02a65125be0020f10231c300e3e3c7db8a23 /transmission-remote-cli
parenta5d2e744d59f5b8d1638f44591bdaf5d538c3443 (diff)
downloadtransmission-remote-cli-d2881e172435f194febad15ea0403ab5bc4f8fb3.tar.gz
Imported Upstream version 1.4.4upstream/1.4.4
Diffstat (limited to 'transmission-remote-cli')
-rwxr-xr-xtransmission-remote-cli14
1 files changed, 8 insertions, 6 deletions
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:
an>/+197 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@866 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-04-03fix typo, close #114michux1-1/+1 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@865 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-04-03update charset for Crystalfontz Model 632 and 634michux2-3/+87 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@864 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-03-05improve error messagesmichux1-7/+13 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@863 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-03-03reformat plugin_mpd - use c style commentsmichux1-8/+8 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@862 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-03-03correct code format (indent)michux1-2/+2 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@861 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-03-03correct code format (indent)michux5-184/+185 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@860 3ae390bd-cb1e-0410-b409-cd5a39f66f1f