Replies: 1 comment 5 replies
-
Is your aria2c server running remotely? It's a current limitation of the client-server architecture: aria2c does not provide a way to copy/move files, so these functions will only work if the server (aria2c) is running on the same machine as the client (aria2p). |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I've got a potentially silly question. I'm trying to copy the downloads that I've given to aria to different places. The solution I came up with was to loop over all my downloads I've given to aria, and pass them to aria2p in a list containing a single download each iteration. That way I can specify a different copy location for each download. However, when I call the
copy_files()
method, even though the output from the method returns true, nothing is actually copied to the location specified. Any idea why that might be?[Update with Reproduction Code]
I have this stripped down code that you can use to reproduce the problem that I'm seeing. You'll have to get your own magnet link to download though, unless you want the exact one that I'm using. To give a little description of what I'm doing, I made a torrent class containing some information on the torrent I'm using, like the name, magnet link and corresponding aria2 download object. In the reproduction example, I am only initiating one download, and then trying to get aria to move that single download, after completion.
I also started an instance of the aria server with the follow command in terminal:
aria2c --enable-rpc --rpc-listen-port=7200 --rpc-secret=token:password -d /your_directory/ --seed-time=30
I've also got a snip of my original code attached below:
Beta Was this translation helpful? Give feedback.
All reactions