summaryrefslogtreecommitdiffstats
path: root/transmission-remote-cli
diff options
context:
space:
mode:
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:
0%2bgit20141218.b46a22c-1&id=7196147d376680cfa791ac9c9753fa9ba7957eb6&follow=1'>New Upstream Snapshot (commit 14bd6c7)Jonathan McCrohan1-2/+3 2014-07-23Imported Upstream version 0+git20140611.14bd6c7upstream/0+git20140611.14bd6c7Jonathan McCrohan7-11/+60 2014-05-13New Upstream Snapshot (commit 1246b27)Jonathan McCrohan1-0/+6 2014-05-13Imported Upstream version 0+git20140512.1246b27upstream/0+git20140512.1246b27Jonathan McCrohan391-301/+3983 2014-04-05Release 0+git20140326.cfc2975-1debian/0+git20140326.cfc2975-1Jonathan McCrohan1-2/+2 2014-04-05d/control: update Homepage (upstream has moved from Gitweb to cgit)Jonathan McCrohan2-1/+2 2014-04-05New Upstream Snapshot (commit cfc2975)Jonathan McCrohan1-0/+6 2014-04-05Imported Upstream version 0+git20140326.cfc2975upstream/0+git20140326.cfc2975Jonathan McCrohan118-656/+877 2014-01-16Release 0+git20140107.1850cf8-1debian/0+git20140107.1850cf8-1Jonathan McCrohan1-2/+2 2014-01-16Update Standards Version to 3.9.5Jonathan McCrohan2-1/+9