[GH-ISSUE #218] Ошибка в плагине deluge: KeyError: 'name' #164

Closed
opened 2026-10-13 19:50:23 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @skaa on GitHub (May 12, 2017).
Original GitHub issue: https://github.com/werwolfby/monitorrent/issues/218

При проверке торрента с lostfilm.tv для клиента deluge получаю такую ошибку

  File "C:\Program Files (x86)\Monitorrent\monitorrent\plugins\trackers\lostfilm.py", line 784, in execute
    TopicSettings.from_topic(topic))
  File "C:\Program Files (x86)\Monitorrent\monitorrent\engine.py", line 315, in add_torrent
    return self.engine.add_torrent(filename, torrent, old_hash, topic_settings)
  File "C:\Program Files (x86)\Monitorrent\monitorrent\engine.py", line 99, in add_torrent
    existing_torrent = self.clients_manager.find_torrent(torrent.info_hash)
  File "C:\Program Files (x86)\Monitorrent\monitorrent\plugin_managers.py", line 204, in find_torrent
    result = self.default_client.find_torrent(torrent_hash)
  File "C:\Program Files (x86)\Monitorrent\monitorrent\plugins\clients\deluge.py", line 116, in find_torrent
    "name": torrent['name'],
KeyError: 'name'

Добавление префикса b в строках 117 и 118: torrent[b'name'] и torrent[b'time_added'] решает проблему. Но может ещё где-то нужно исправить. С питоном не знаком)

Originally created by @skaa on GitHub (May 12, 2017). Original GitHub issue: https://github.com/werwolfby/monitorrent/issues/218 При проверке торрента с lostfilm.tv для клиента deluge получаю такую ошибку ``` File "C:\Program Files (x86)\Monitorrent\monitorrent\plugins\trackers\lostfilm.py", line 784, in execute TopicSettings.from_topic(topic)) File "C:\Program Files (x86)\Monitorrent\monitorrent\engine.py", line 315, in add_torrent return self.engine.add_torrent(filename, torrent, old_hash, topic_settings) File "C:\Program Files (x86)\Monitorrent\monitorrent\engine.py", line 99, in add_torrent existing_torrent = self.clients_manager.find_torrent(torrent.info_hash) File "C:\Program Files (x86)\Monitorrent\monitorrent\plugin_managers.py", line 204, in find_torrent result = self.default_client.find_torrent(torrent_hash) File "C:\Program Files (x86)\Monitorrent\monitorrent\plugins\clients\deluge.py", line 116, in find_torrent "name": torrent['name'], KeyError: 'name' ``` Добавление префикса b в строках 117 и 118: `torrent[b'name']` и `torrent[b'time_added']` решает проблему. Но может ещё где-то нужно исправить. С питоном не знаком)
Author
Owner

@byg0n3 commented on GitHub (May 12, 2017):

так уже ж репортилось вами тут https://github.com/werwolfby/monitorrent/issues/216 и было отвечено, что исправлено в рамках https://github.com/werwolfby/monitorrent/issues/200#issuecomment-281588437

<!-- gh-comment-id:301106328 --> @byg0n3 commented on GitHub (May 12, 2017): так уже ж репортилось вами тут https://github.com/werwolfby/monitorrent/issues/216 и было отвечено, что исправлено в рамках https://github.com/werwolfby/monitorrent/issues/200#issuecomment-281588437
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#164
No description provided.