[GH-ISSUE #200] Download dir for deluge is retrieved incorrectly #152

Closed
opened 2026-10-13 19:49:59 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @DSilence on GitHub (Feb 21, 2017).
Original GitHub issue: https://github.com/werwolfby/monitorrent/issues/200

Originally assigned to: @DSilence on GitHub.

The correct settings name should be "move_completed_path" instead of "download_location". Download location only represents temp directory for current download

Originally created by @DSilence on GitHub (Feb 21, 2017). Original GitHub issue: https://github.com/werwolfby/monitorrent/issues/200 Originally assigned to: @DSilence on GitHub. The correct settings name should be "move_completed_path" instead of "download_location". Download location only represents temp directory for current download
bsakaguchi 2026-10-13 19:49:59 +00:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@werwolfby commented on GitHub (Feb 21, 2017):

And find_torrent for deluge doesn't work as well 😞

<!-- gh-comment-id:281470489 --> @werwolfby commented on GitHub (Feb 21, 2017): And `find_torrent` for deluge doesn't work as well 😞
Author
Owner

@DSilence commented on GitHub (Feb 22, 2017):

Will take a look at that.

<!-- gh-comment-id:281588243 --> @DSilence commented on GitHub (Feb 22, 2017): Will take a look at that.
Author
Owner

@werwolfby commented on GitHub (Feb 22, 2017):

Examples from gitter (thanks to @dein0s):

FAILED
Exception while execute
Traceback (most recent call last):
  File "c:\Program Files (x86)\Monitorrent\monitorrent\plugins\trackers\__init__.py", line 245, 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'

And result dictionary from Deluge

{b'name': b'Big Little Lies (Season 01)', b'time_added': 1487623424.0}

It is bytes, not a regular string while in tests and in code we are trying access to this dictionary by string keys.

<!-- gh-comment-id:281588437 --> @werwolfby commented on GitHub (Feb 22, 2017): Examples from gitter (thanks to @dein0s): ``` FAILED Exception while execute Traceback (most recent call last): File "c:\Program Files (x86)\Monitorrent\monitorrent\plugins\trackers\__init__.py", line 245, 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' ``` And result dictionary from Deluge ``` {b'name': b'Big Little Lies (Season 01)', b'time_added': 1487623424.0} ``` It is bytes, not a regular string while in tests and in code we are trying access to this dictionary by string keys.
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#152
No description provided.