Skip to content

Commit

Permalink
Add horrible hack to work around difference in JSON-RPC
Browse files Browse the repository at this point in the history
This will need to be in place until
jesec/rtorrent#58 is merged
  • Loading branch information
kannibalox committed Apr 18, 2023
1 parent 1c1ee5e commit 191d98a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyrosimple/torrent/rtorrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def move_to_host(self, remote_url: str, copy: bool = False):
if not copy:
proxy.d.stop(self.hash)
self._engine.logger.debug("Running extra commands on load: %s", extra_cmds)
if rpc_protocol == "json":
if rpc_protocol == "json" and not os.getenv("PYRO_FORCE_JSONRPC_LOAD_RAW"):
remote_proxy.load.verbose("", rpc_metafile, *extra_cmds)
else:
remote_proxy.load.raw_verbose("", rpc_metafile, *extra_cmds)
Expand Down

0 comments on commit 191d98a

Please sign in to comment.