Apply #932 minor ti_name optimization

This commit is contained in:
Andrew Resch 2009-05-10 19:28:23 +00:00
parent 2d2f8f7700
commit 128b40641f
1 changed files with 1 additions and 1 deletions

View File

@ -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: