Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
qBittorrent rechecking torrents after disconnecting external hard drive #11973
This is not my post, it's a post that I relate and found in reddit(Posted by u/SoleaPorBuleria), and I tought it has a good explanation about something that would be really good if implemented, since it take hours to recheck every torrent of the external hard drive. Reddit post:
"I just (finally) made the switch from uTorrent to qBittorrent (v.4.1.8 for Mac). So far I'm loving it, but I've noticed a problem which I can anticipate being very annoying, and I wanted to see if there's a way around it.
I seed a lot of my torrents from an external hard drive. Sometimes I don't have that hard drive with me, particularly when I'm travelling. If I open qBittorrent when the external HD isn't connected, it sets all the torrents stored on the external drive to 0% completion. When I connect the HD again and resume seeding, it rechecks every single torrent, which takes quite a while.
For all its flaws, uTorrent didn't do this - when it couldn't find files due to their being on a disconnected drive, it at least recognized that they were complete, and started them right back up again when I connected that drive.
Is there any way to turn this behavior off, or to circumvent it? Right now I can't figure out how to download torrents while travelling without having to recheck dozens of huge files when I connect my HD again. Thanks!"
Goal: If the external HD is removed for completed seeding files, it only say "harddrive removed", and when you put it back, you only need to "start" the torrents again, without needing to recheck every torrent.
I have the same problem few days ago. I shutdowm my computer, the external drivers didn't turn on, and it seems that qBittorrent mark the torrents as missed or something like that. When stop qBittorrent, attched the external drives and start qBittorrent again, it checked all the torrents.
Perhaps it could be possible to implement a way that if qBittorrent detects that the drive is not available, if later is available, don't recheck all the torrents again. Just and idea, or find someway to avoid to recheck torrents if the reason it is because in some moment the drive is not available.
This appears to not be the fix because the problematic sequence seems to be:
If that is the case, here is a possible way of preventing this, though I'm not sure if would work, and I'm not sure if this should be handled by libtorrent or qBIttorrent:
@glassez what do you think?
@FranciscoPombal, the original issue description says:
So I suppose the author just connects disk and clicks "Resume" button.
@glassez My point is was that maybe there should be a distinction. But I just followed my own steps with the rename method (no mounts involved), and even in that case, qBittorrent did not recheck the files. Thus, I'm closing this as fixed.
@FranciscoPombal Right, in my case the sequence is as you describe.
I am not complete sure, because I don't remember fine all the details, but another related issue is when qBittorrent marks a torrent as missed beacuse the drive is not connected. If I close qBittorrent, connect the drive and start qBittorrent again, the torrent is still marked as missed, I have to force to download, so it recheck again, or directly I can force recheck. In both cases, the recheck is needed.
When a torrent is missed, perhaps it would be nice to know the reason to be missed, it is not the same bacause the drive is not connected in some moment than the drive is connected but there are missed files.
Because of this problem, I am developing a luncher that first check if all the drives are connected. If all the drives are connected, then start qBittorrent, if not, don't start qBittorrent and send an email to tell about the problem.
But this has limitations, bacause if I have various drives, it doesn't allow me to share the file of the connected drives. If qBittorrent could check if a drive is connect or no, it could mark the torrents of this drive as drive not available, for example, and the next time that qBittorrent is started, if the drive is connected in this case, don't rechek the torrents of this drives. Just an idea.