autotorrent2 icon indicating copy to clipboard operation
autotorrent2 copied to clipboard

Support individual filepaths in `scan --path`

Open JodanJodan opened this issue 11 months ago • 3 comments

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?

JodanJodan avatar Mar 09 '24 18:03 JodanJodan

Edit: I don't think it was ever supported with a single file but I can add it.

JohnDoee avatar Mar 10 '24 18:03 JohnDoee

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.

JodanJodan avatar Mar 11 '24 02:03 JodanJodan

It will be out with next release, made a typo in commit message but it is fixed in the latest commit.

JohnDoee avatar Mar 11 '24 10:03 JohnDoee