@tbrandon wrote:
I'm getting an error in the rtorrent plugin due to unicode characters:
2016-12-20 20:16 CRITICAL task download-hq BUG: Unhandled error in plugin rtorrent: 'ascii' codec can't encode character u'\u2019' in position 150: ordinal not in range(128)
This is due to unicode characters in tvdb_epname being passed to an rtorrent custom field.
Flexget 2.8.8 on python 2.7.12+ (Ubuntu 16.10), with:
$ locale LANG=en_AU.UTF-8
Flexget --debug says:
2016-12-21 06:40 DEBUG manager sys.defaultencoding: ascii 2016-12-21 06:40 DEBUG manager sys.getfilesystemencoding: UTF-8
Is there a setting I am missing or is this a bug in the rtorrent plugin?
Full traceback is:
2016-12-20 20:16 CRITICAL task download-hq BUG: Unhandled error in plugin rtorrent: 'ascii' codec can't encode character u'\u2019' in position 150: ordinal not in range(128) Traceback (most recent call last): File "/home/user/flexget/local/lib/python2.7/site-packages/flexget/task.py", line 483, in __run_plugin return method(*args, **kwargs) File "/home/user/flexget/local/lib/python2.7/site-packages/flexget/event.py", line 23, in __call__ return self.func(*args, **kwargs) File "/home/user/flexget/local/lib/python2.7/site-packages/flexget/plugins/clients/rtorrent.py", line 530, in on_task_output self.add_entry(client, entry, options, start=config['start'], mkdir=config['mkdir']) File "/home/user/flexget/local/lib/python2.7/site-packages/flexget/plugins/clients/rtorrent.py", line 642, in add_entry resp = client.load(torrent_raw, fields=options, start=start, mkdir=mkdir) File "/home/user/flexget/local/lib/python2.7/site-packages/flexget/plugins/clients/rtorrent.py", line 318, in load params.append('d.%s.set=%s' % (key, re.escape(native_str(val)))) UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 150: ordinal not in range(128)
Thanks
Posts: 1
Participants: 1