You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using qbittorrent-cli on an Ubuntu 22.04 to interact with a qBittorrent docker on the same server. Everything is downloading pretty smoothly but I need to add an extra level of automation. The goal is to clean qBittorrent of finished torrents.
The way it is implemented for the moment is to have an external script running on the server, polling the QBT state (with qbt torrent list), then if a torrent matches the condition to remove it from qBittorrent first by issuing a qbt torrent move command (qbt torrent move ). My dilemna is that command seems to be asynchronous meaning that I got an answer before the move is actually finished on disk. Of course for small files, the difference is null but when large files are implied, the script continues and makes some other operations even if the move is not finished.
So, first question, am I right to assume that qbit or qbittorent is running like this ?
Second, if yes, is there a way to make this synchronous? I checked the FAQ and the wiki and found nothing.
if not, I thought to use the 'Run external program' function but, even if this case, I still have to handle the same issue except if I move myself the files.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using qbittorrent-cli on an Ubuntu 22.04 to interact with a qBittorrent docker on the same server. Everything is downloading pretty smoothly but I need to add an extra level of automation. The goal is to clean qBittorrent of finished torrents.
The way it is implemented for the moment is to have an external script running on the server, polling the QBT state (with qbt torrent list), then if a torrent matches the condition to remove it from qBittorrent first by issuing a qbt torrent move command (qbt torrent move ). My dilemna is that command seems to be asynchronous meaning that I got an answer before the move is actually finished on disk. Of course for small files, the difference is null but when large files are implied, the script continues and makes some other operations even if the move is not finished.
So, first question, am I right to assume that qbit or qbittorent is running like this ?
Second, if yes, is there a way to make this synchronous? I checked the FAQ and the wiki and found nothing.
if not, I thought to use the 'Run external program' function but, even if this case, I still have to handle the same issue except if I move myself the files.
Any idea to share ?
Thanks for you help :)
Beta Was this translation helpful? Give feedback.
All reactions