autotorrent2
autotorrent2 copied to clipboard
Support individual filepaths in `scan --path`
I've been using this post-completion hook in qBittorrent:
/home/usr/bin/at2 scan -p "%F"
"%F"
is the content path, so the root folder for multifile torrents or just the file path for single file torrents. I believe this used to work, but recently after updating I get the following error:
Failed to scan /home/usr/files/[Group] Release - 01.mkv: [Errno 20] Not a directory: '/home/usr/files/[Group] Release - 01.mkv'
Could single file paths be (again?) supported?
Edit: I don't think it was ever supported with a single file but I can add it.
Yeah I think I was just mistaken about it being a regression and I just never ran into it as most of my torrents were multifile. It'd be a nice addition though, instead of having to rescan the whole directory.
It will be out with next release, made a typo in commit message but it is fixed in the latest commit.