From 128b40641fbd4e48c6e8005d24eb2f66a673a943 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 10 May 2009 19:28:23 +0000 Subject: [PATCH] Apply #932 minor ti_name optimization --- deluge/core/torrent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index fb58d8d75..3ac39dc53 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -621,7 +621,7 @@ class Torrent: def ti_name(): if self.handle.has_metadata(): - name = self.torrent_info.file_at(0).path.split("/")[0] + name = self.torrent_info.file_at(0).path.split("/", 1)[0] try: return name.decode("utf8", "ignore") except UnicodeDecodeError: