mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-19 19:14:55 +00:00
Optimize ti_name a touch
This commit is contained in:
parent
d8e397c65a
commit
2f955b62f9
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue