[GH-ISSUE #285] После добавления сериала вылетает ошибка #221

Closed
opened 2026-10-13 19:51:47 +00:00 by bsakaguchi · 6 comments
Owner

Originally created by @makar0nin on GitHub (Jan 30, 2019).
Original GitHub issue: https://github.com/werwolfby/monitorrent/issues/285

INFO
Check for changes Проект «Синяя книга» / Project Blue Book

FAILED
Exception while execute
Traceback (most recent call last):
File "/opt/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 785, in execute
TopicSettings.from_topic(topic))
File "/opt/monitorrent/monitorrent/engine.py", line 315, in add_torrent
return self.engine.add_torrent(filename, torrent, old_hash, topic_settings)
File "/opt/monitorrent/monitorrent/engine.py", line 86, in add_torrent
elif self.clients_manager.add_torrent(torrent.raw_content, topic_settings):
File "/opt/monitorrent/monitorrent/plugin_managers.py", line 214, in add_torrent
return self.default_client.add_torrent(torrent, topic_settings)
File "/opt/monitorrent/monitorrent/plugins/clients/transmission.py", line 119, in add_torrent
client.add_torrent(base64.b64encode(torrent).decode('utf-8'), **torrent_settings_dict)
File "/home/user/.local/lib/python2.7/site-packages/transmissionrpc/client.py", line 414, in add_torrent
(arg, val) = argument_value_convert('torrent-add', argument, value, self.rpc_version)
File "/home/user/.local/lib/python2.7/site-packages/transmissionrpc/utils.py", line 153, in argument_value_convert
return (argument, TR_TYPE_MAPinfo[0])
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 38: ordinal not in range(128)

И такое сообщение периодически появляется на других сериалах.

Originally created by @makar0nin on GitHub (Jan 30, 2019). Original GitHub issue: https://github.com/werwolfby/monitorrent/issues/285 > INFO > Check for changes Проект «Синяя книга» / Project Blue Book > > FAILED > Exception while execute > Traceback (most recent call last): > File "/opt/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 785, in execute > TopicSettings.from_topic(topic)) > File "/opt/monitorrent/monitorrent/engine.py", line 315, in add_torrent > return self.engine.add_torrent(filename, torrent, old_hash, topic_settings) > File "/opt/monitorrent/monitorrent/engine.py", line 86, in add_torrent > elif self.clients_manager.add_torrent(torrent.raw_content, topic_settings): > File "/opt/monitorrent/monitorrent/plugin_managers.py", line 214, in add_torrent > return self.default_client.add_torrent(torrent, topic_settings) > File "/opt/monitorrent/monitorrent/plugins/clients/transmission.py", line 119, in add_torrent > client.add_torrent(base64.b64encode(torrent).decode('utf-8'), **torrent_settings_dict) > File "/home/user/.local/lib/python2.7/site-packages/transmissionrpc/client.py", line 414, in add_torrent > (arg, val) = argument_value_convert('torrent-add', argument, value, self.rpc_version) > File "/home/user/.local/lib/python2.7/site-packages/transmissionrpc/utils.py", line 153, in argument_value_convert > return (argument, TR_TYPE_MAP[info[0]](value)) > UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 38: ordinal not in range(128) И такое сообщение периодически появляется на других сериалах.
bsakaguchi 2026-10-13 19:51:47 +00:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@werwolfby commented on GitHub (Jan 31, 2019):

Очень странно, я проверю на сериале, спасибо

<!-- gh-comment-id:459243035 --> @werwolfby commented on GitHub (Jan 31, 2019): Очень странно, я проверю на сериале, спасибо
Author
Owner

@werwolfby commented on GitHub (Jan 31, 2019):

@makar0nin а по какому урлу добавляете?

У меня была похожая проблема когда я забыл вконце /seasons добавить. Т.е. урл должен быть вида: https://www.lostfilm.tv/series/The_Haunting_of_Hill_House/seasons

В любом случае это баг, но может поможет

<!-- gh-comment-id:459244571 --> @werwolfby commented on GitHub (Jan 31, 2019): @makar0nin а по какому урлу добавляете? У меня была похожая проблема когда я забыл вконце /seasons добавить. Т.е. урл должен быть вида: https://www.lostfilm.tv/series/The_Haunting_of_Hill_House/seasons В любом случае это баг, но может поможет
Author
Owner

@makar0nin commented on GitHub (Jan 31, 2019):

Вроде бы именно такой адрес.

<!-- gh-comment-id:459259776 --> @makar0nin commented on GitHub (Jan 31, 2019): Вроде бы именно такой адрес.
Author
Owner

@werwolfby commented on GitHub (Jan 31, 2019):

Тогда скорее всего в ковычках проблема, посмотрю, но не в ближайшие 2 недели 😞

<!-- gh-comment-id:459260031 --> @werwolfby commented on GitHub (Jan 31, 2019): Тогда скорее всего в ковычках проблема, посмотрю, но не в ближайшие 2 недели 😞
Author
Owner

@makar0nin commented on GitHub (Jan 31, 2019):

Наверное стоит уточнить . |Что установка производилась самостоятельно (не docker) , и сделано было по инструкции. Однако сейчас прочитав еще раз Readme решил проверить версии pyton и pip.
В итоге оказалось 2.7 . Решил попробовать на 3 и теперь

FAILED
Exception while execute
Traceback (most recent call last):
File "/opt/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 785, in execute
TopicSettings.from_topic(topic))
File "/opt/monitorrent/monitorrent/engine.py", line 315, in add_torrent
return self.engine.add_torrent(filename, torrent, old_hash, topic_settings)
File "/opt/monitorrent/monitorrent/engine.py", line 101, in add_torrent
raise Exception(u'Torrent {0} wasn't added'.format(filename))
Exception: Torrent The.Good.Doctor.S02E13.rus.LostFilm.TV.avi.torrent wasn't added

И наверное стоит поправить инструкцию по установке если конкретно 3 версию python и pip к нему. Но думаю это отдельно надо рассматривать

<!-- gh-comment-id:459262007 --> @makar0nin commented on GitHub (Jan 31, 2019): Наверное стоит уточнить . |Что установка производилась самостоятельно (не docker) , и сделано было по инструкции. Однако сейчас прочитав еще раз Readme решил проверить версии pyton и pip. В итоге оказалось 2.7 . Решил попробовать на 3 и теперь > FAILED > Exception while execute > Traceback (most recent call last): > File "/opt/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 785, in execute > TopicSettings.from_topic(topic)) > File "/opt/monitorrent/monitorrent/engine.py", line 315, in add_torrent > return self.engine.add_torrent(filename, torrent, old_hash, topic_settings) > File "/opt/monitorrent/monitorrent/engine.py", line 101, in add_torrent > raise Exception(u'Torrent {0} wasn\'t added'.format(filename)) > Exception: Torrent The.Good.Doctor.S02E13.rus.LostFilm.TV.avi.torrent wasn't added И наверное стоит поправить инструкцию по установке если конкретно 3 версию python и pip к нему. Но думаю это отдельно надо рассматривать
Author
Owner

@makar0nin commented on GitHub (Jan 31, 2019):

В итоге ошибка из предыдущего поста возникла как я понял из за того , что после обновления на 3 python клиентом по умолчанию стал qbittorrent вместо настроенного ранее transmission.

<!-- gh-comment-id:459269495 --> @makar0nin commented on GitHub (Jan 31, 2019): В итоге ошибка из предыдущего поста возникла как я понял из за того , что после обновления на 3 python клиентом по умолчанию стал qbittorrent вместо настроенного ранее transmission.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
werwolfby/monitorrent#221
No description provided.