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: