mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Fix torrent name being blank when root folder is renamed to /
Update changelog (for previous commit as well)
This commit is contained in:
parent
eba82457bd
commit
92afb8ab80
2 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
=== Deluge 1.2.0_rc3 (In Development) ===
|
||||
==== Core ====
|
||||
* Fix #1047 move completed does not work if saving to non default path
|
||||
* Fix renamed files not being utf-8 encoded
|
||||
* Fix torrent name being blank when renaming root folder to /
|
||||
|
||||
==== GtkUI ====
|
||||
* replace & with & in the details tab to ensure there are no markup errors
|
||||
|
|
|
@ -608,6 +608,8 @@ class Torrent:
|
|||
def ti_name():
|
||||
if self.handle.has_metadata():
|
||||
name = self.torrent_info.file_at(0).path.split("/", 1)[0]
|
||||
if not name:
|
||||
return self.torrent_info.name()
|
||||
try:
|
||||
return name.decode("utf8", "ignore")
|
||||
except UnicodeDecodeError:
|
||||
|
|
Loading…
Add table
Reference in a new issue