JohnDoee / autotorrent2

Cross-seed matching and torrent lifecycle tool
https://johndoee.github.io/autotorrent2/
MIT License
151 stars 12 forks source link

Support individual filepaths in `scan --path` #56

Open JodanJodan opened 7 months ago

JodanJodan commented 7 months ago

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?

JohnDoee commented 7 months ago

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

JodanJodan commented 7 months ago

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.

JohnDoee commented 6 months ago

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