Deluge Console Add

Specific support for Deluge on Microsoft Windows OS
Post Reply
etcmake

Deluge Console Add

Post by etcmake »

Hello,

I recently started using Deluge, and so far, it's been working fine. However, I get a Python error whenever a name contains extended Latin characters.

Code: Select all

; This works (I escape command line characters because this is for an import script.)
C:\PROGRA~2\Deluge\deluge-console " add -p C:\users\blah\downloads \"C:^\Users^\blah^\blah.torrent\" "

; This doesn't work
C:\PROGRA~2\Deluge\deluge-console " add -p C:\users\blah\downloadst \"C:^\Users^\blah^\blààààààh.torrent\" "
The error is something like this:

Code: Select all

[ERROR   ] 14:26:12 __init__:1080 'ascii' codec can't decode byte 0xe0 in position 92: ordinal not in range(128)
Traceback (most recent call last):
  File "deluge\ui\console\main.py", line 328, in do_command
  File "deluge\ui\console\commands\add.py", line 87, in handle
  File "deluge\ui\console\main.py", line 281, in write
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 92: ordinal not in range(128)
Traceback (most recent call last):
  File "deluge\ui\console\main.py", line 328, in do_command
  File "deluge\ui\console\commands\add.py", line 87, in handle
  File "deluge\ui\console\main.py", line 281, in write
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 92: ordinal not in range(128)
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge Console Add

Post by Cas »

Pretty sure it's the same as this bug: http://dev.deluge-torrent.org/ticket/2093
Post Reply