summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Resch <andrewresch@gmail.com>2009-05-10 19:28:23 +0000
committerAndrew Resch <andrewresch@gmail.com>2009-05-10 19:28:23 +0000
commitd85d8945e75145e2764cc38f97b008fa3fbe46f7 (patch)
tree4fa26daae6267e8353be803934c780d5a5231d0d
parent2856e948deef3a5270ce3622e6296f456f39c6b1 (diff)
downloaddeluge-d85d8945e75145e2764cc38f97b008fa3fbe46f7.tar.gz
deluge-d85d8945e75145e2764cc38f97b008fa3fbe46f7.tar.bz2
deluge-d85d8945e75145e2764cc38f97b008fa3fbe46f7.zip
Apply #932 minor ti_name optimization
-rw-r--r--deluge/core/torrent.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py
index fbc7e62ab..060d34d93 100644
--- a/deluge/core/torrent.py
+++ b/deluge/core/torrent.py
@@ -637,7 +637,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: