Torrent name is now changed when the root folder or file is renamed
This commit is contained in:
parent
876a01ff84
commit
5b3528c9d1
|
@ -621,10 +621,11 @@ class Torrent:
|
||||||
|
|
||||||
def ti_name():
|
def ti_name():
|
||||||
if self.handle.has_metadata():
|
if self.handle.has_metadata():
|
||||||
|
name = os.path.split(self.torrent_info.file_at(0).path)[0]
|
||||||
try:
|
try:
|
||||||
return self.torrent_info.name().decode("utf8", "ignore")
|
return name.decode("utf8", "ignore")
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
return self.torrent_info.name()
|
return name
|
||||||
|
|
||||||
return self.torrent_id
|
return self.torrent_id
|
||||||
def ti_priv():
|
def ti_priv():
|
||||||
|
|
Loading…
Reference in New Issue