mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 04:24:27 +00:00
Optimize ti_name a touch
This commit is contained in:
parent
f12f02fff8
commit
96c399f7f5
@ -621,7 +621,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…
x
Reference in New Issue
Block a user