Hi, all!
So, I've set rtorrent to move torrents that were loaded from specific watch directories to specific directories when the download is completed, using these commands(example for two watch directories):
Code:
schedule = watch_directory_1,10,10,"load_start=~/files/Sources/Watch/*.torrent,d.set_custom1=~/files/Sources/Completed/"
schedule = watch_directory_2,10,10,"load_start=~/files/*.torrent,d.set_custom1=~/files/"
system.method.set_key = event.download.finished,move_complete,"d.set_directory=$d.get_custom1=;execute=mv,-u,$d.get_base_path=,$d.get_custom1="
My issue is as follows:
When rtorrent loads files from the watch directories that have "custom1" set for them(like the examples I've given above), the torrents are being downloaded to the default downloading directory for the duration of the download, and when the download is finished, rtorrent moves the downloaded files to the directories I've set as "custom1" based on the watch directory each torrent was loaded from, and seeds the torrents from there. But, when I load torrents manually, they are being downloaded just fine to the default downloading directory, but when the download is finished, rtorrent pauses these torrents and won't start seeding them.
As far as I understand it, it results from the line:
Code:
system.method.set_key = event.download.finished,move_complete,"d.set_directory=$d.get_custom1=;execute=mv,-u,$d.get_base_path=,$d.get_custom1="rtorrent basically looks for a folder that has been set as "custom1" for every downloaded torrent, so it could move the downloaded files there once the download is finished, and so rtorrent tries to move the torrents that have been loaded manually to 'their' "custom1" directory, but since no "custom1" directory has been set for them it has nowhere to move them to, which results in rtorrent not finding the files after the download has been completed, and basically searching for them in a location that doesn't exist(no directory - if that makes any sense).
So my question is, is there a way to let rtorrent know that the torrents that are loaded manually actually stayed in the default downloading directory after they finished downloading?
Edit: I've now discovered that the folder the completed files will move to is the label each torrent gets when loaded, so I've tried setting the label as the destination where I wanted to have the files of the manually added torrents saved when finished, but for some reason only labels that don't include "/" and "~"(the home/user/ directory shortcut sign) kinda work. When I just type the name of the label without these two signs - for example: 'files' - it will move the files once the torrent is complete to a folder named 'files' created in my /home/user/ directory(which basically cancels the need to use "~").
It's a start towards making this work, I guess, but I would really like to find a way to get rtorrent to recognize "/" as well, instead of adding "%2F" for each "/" written in the label to the directory name it creates in my /home/user/ directory(For example: the label "files/torrents/completed" will create a directory named "files%2Ftorrents%2Fcompleted" in my /home/user/ directory).
So, I've set rtorrent to move torrents that were loaded from specific watch directories to specific directories when the download is completed, using these commands(example for two watch directories):
Code:
schedule = watch_directory_1,10,10,"load_start=~/files/Sources/Watch/*.torrent,d.set_custom1=~/files/Sources/Completed/"
schedule = watch_directory_2,10,10,"load_start=~/files/*.torrent,d.set_custom1=~/files/"
system.method.set_key = event.download.finished,move_complete,"d.set_directory=$d.get_custom1=;execute=mv,-u,$d.get_base_path=,$d.get_custom1="
My issue is as follows:
When rtorrent loads files from the watch directories that have "custom1" set for them(like the examples I've given above), the torrents are being downloaded to the default downloading directory for the duration of the download, and when the download is finished, rtorrent moves the downloaded files to the directories I've set as "custom1" based on the watch directory each torrent was loaded from, and seeds the torrents from there. But, when I load torrents manually, they are being downloaded just fine to the default downloading directory, but when the download is finished, rtorrent pauses these torrents and won't start seeding them.
As far as I understand it, it results from the line:
Code:
system.method.set_key = event.download.finished,move_complete,"d.set_directory=$d.get_custom1=;execute=mv,-u,$d.get_base_path=,$d.get_custom1="rtorrent basically looks for a folder that has been set as "custom1" for every downloaded torrent, so it could move the downloaded files there once the download is finished, and so rtorrent tries to move the torrents that have been loaded manually to 'their' "custom1" directory, but since no "custom1" directory has been set for them it has nowhere to move them to, which results in rtorrent not finding the files after the download has been completed, and basically searching for them in a location that doesn't exist(no directory - if that makes any sense).
So my question is, is there a way to let rtorrent know that the torrents that are loaded manually actually stayed in the default downloading directory after they finished downloading?
Edit: I've now discovered that the folder the completed files will move to is the label each torrent gets when loaded, so I've tried setting the label as the destination where I wanted to have the files of the manually added torrents saved when finished, but for some reason only labels that don't include "/" and "~"(the home/user/ directory shortcut sign) kinda work. When I just type the name of the label without these two signs - for example: 'files' - it will move the files once the torrent is complete to a folder named 'files' created in my /home/user/ directory(which basically cancels the need to use "~").
It's a start towards making this work, I guess, but I would really like to find a way to get rtorrent to recognize "/" as well, instead of adding "%2F" for each "/" written in the label to the directory name it creates in my /home/user/ directory(For example: the label "files/torrents/completed" will create a directory named "files%2Ftorrents%2Fcompleted" in my /home/user/ directory).