[Deluge] #3461: Filenames with unicode not working

36 views
Skip to first unread message

Deluge

unread,
Mar 3, 2021, 10:44:13 AM3/3/21
to delug...@googlegroups.com
#3461: Filenames with unicode not working
----------------------------+------------------------------------------
Reporter: razaq | Type: bug
Status: new | Priority: minor
Milestone: needs verified | Component: Unknown
Version: 2.0.3 | Keywords: unicode, filename, file name
----------------------------+------------------------------------------
If a file name contains a unicode character, deluge 2.0.3 will not add
that torrent (errors in logs). Previous versions of deluge (for example
1.3.X) allowed adding the torrent and simply renamed the file on the
harddrive.

Allow adding torrents with unicode chars in the name again by either
natively supporting it or by renaming the file in question like deluge
1.3.X did.

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3461>
Deluge <https://deluge-torrent.org/>
Deluge Project

Deluge

unread,
Mar 3, 2021, 2:47:36 PM3/3/21
to delug...@googlegroups.com
#3461: Filenames with unicode not working
----------------------+------------------------------------------
Reporter: razaq | Owner:

Type: bug | Status: new
Priority: minor | Milestone: needs verified
Component: Unknown | Version: 2.0.3
Resolution: | Keywords: unicode, filename, file name
----------------------+------------------------------------------

Comment (by Cas):

Please provide the log

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3461#comment:1>

Deluge

unread,
Mar 3, 2021, 6:37:43 PM3/3/21
to delug...@googlegroups.com
#3461: Filenames with unicode not working
----------------------+------------------------------------------
Reporter: razaq | Owner:

Type: bug | Status: new
Priority: minor | Milestone: needs verified
Component: Unknown | Version: 2.0.3
Resolution: | Keywords: unicode, filename, file name
----------------------+------------------------------------------

Comment (by razaq):

{{{
00:35:03 [CRITICAL][twisted :154 ] Unhandled Error
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/deluge/core/daemon_entry.py",
line 122, in run_daemon
daemon.start()
File "/usr/lib/python3.9/site-packages/deluge/core/daemon.py", line 164,
in start
reactor.run()
File "/usr/lib/python3.9/site-packages/twisted/internet/base.py", line
1283, in run
self.mainLoop()
File "/usr/lib/python3.9/site-packages/twisted/internet/base.py", line
1292, in mainLoop
self.runUntilCurrent()
--- <exception caught here> ---
File "/usr/lib/python3.9/site-packages/twisted/internet/base.py", line
913, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/usr/lib/python3.9/site-packages/deluge/core/torrentmanager.py",
line 1258, in on_alert_add_torrent
self.add_async_callback(alert.handle, *add_async_params)
File "/usr/lib/python3.9/site-packages/deluge/core/torrentmanager.py",
line 697, in add_async_callback
torrent = self._add_torrent_obj(
File "/usr/lib/python3.9/site-packages/deluge/core/torrentmanager.py",
line 639, in _add_torrent_obj
torrent = Torrent(handle, options, state, filename, magnet)
File "/usr/lib/python3.9/site-packages/deluge/core/torrent.py", line
283, in __init__
self.set_options(self.options)
File "/usr/lib/python3.9/site-packages/deluge/core/torrent.py", line
315, in set_options
options_set_func(value)
File "/usr/lib/python3.9/site-packages/deluge/core/torrent.py", line
515, in set_file_priorities
if file_priorities and len(file_priorities) == len(self.get_files()):
File "/usr/lib/python3.9/site-packages/deluge/core/torrent.py", line
770, in get_files
return convert_lt_files(files)
File "/usr/lib/python3.9/site-packages/deluge/core/torrent.py", line
114, in convert_lt_files
file_path = _file.path.decode('utf8')
builtins.UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in
position 41: invalid continuation byte
}}}

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3461#comment:2>

Deluge

unread,
Feb 15, 2022, 10:49:02 AM2/15/22
to delug...@googlegroups.com
#3461: Filenames with unicode not working
----------------------+------------------------------------------
Reporter: razaq | Owner:
Type: bug | Status: new
Priority: minor | Milestone: 2.1.0
Component: Unknown | Version: 2.0.3
Resolution: | Keywords: unicode, filename, file name
----------------------+------------------------------------------
Changes (by Cas):

* milestone: needs verified => 2.1.0


--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3461#comment:3>

Deluge

unread,
Feb 15, 2022, 10:51:00 AM2/15/22
to delug...@googlegroups.com
#3461: Filenames with unicode not working
----------------------+------------------------------------------
Reporter: razaq | Owner:
Type: bug | Status: new

Priority: minor | Milestone: 2.1.0
Component: Unknown | Version: 2.0.3
Resolution: | Keywords: unicode, filename, file name
----------------------+------------------------------------------

Comment (by Cas):

Can you provide the problem torrent file? This looks like an encoding
issue with the torrent

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3461#comment:4>

Reply all
Reply to author
Forward
0 new messages