diff options
author | Andrew Resch <andrewresch@gmail.com> | 2009-05-09 03:42:39 +0000 |
---|---|---|
committer | Andrew Resch <andrewresch@gmail.com> | 2009-05-09 03:42:39 +0000 |
commit | 2f955b62f9b237326b687313a1fc1fddcfc24c3f (patch) | |
tree | 9cc7efbe954cf3df2b6c68d43a9e39ef967501b3 | |
parent | d8e397c65ad5fb3bc31b2a6d7d57831817fb0eb2 (diff) | |
download | deluge-2f955b62f9b237326b687313a1fc1fddcfc24c3f.tar.gz deluge-2f955b62f9b237326b687313a1fc1fddcfc24c3f.tar.bz2 deluge-2f955b62f9b237326b687313a1fc1fddcfc24c3f.zip |
Optimize ti_name a touch
-rw-r--r-- | deluge/core/torrent.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index c9f5febe8..fbc7e62ab 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 = os.path.split(self.torrent_info.file_at(0).path)[0] + name = self.torrent_info.file_at(0).path.split("/")[0] try: return name.decode("utf8", "ignore") except UnicodeDecodeError: |