-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR]: Include orphaned files and recycle bin in the list of folders to ignore when looking for noHL #660
Comments
I don't think I understand this use case. Any files that are put in Recyclebin or Orphaned folder should not be referenced by any existing torrent. |
Here's the scenario: 1st Torrent (TorrentA) has "MyFile.mp4" The two "MyFile.mp4" are identical, therefore we have them hardlinked the same content (inode).
Two days after downloading "MyFile.mp4", I delete it from Jellyfin.
Either of these scenarios happen:
After a few days (waiting on
When looking for NoHL, the logic introduced in #291 we moved from the logic
To
Unfortunately, we only considered |
Ah okay, that makes sense. My |
Oh god, now I do feel dumb. Yes you are 100% correct. This is because I've been for a long time on a weird config where my root_dir is actually the "completed" folder for qbittorrent... I suspect at the initial setup time, I was thrown off by https://github.com/StuffAnThings/qbit_manage/blob/master/config/config.yml.sample#L54-L59 (yeah I'm making excuses now). I changed my root_dir and what do you know, everything's working fine. |
No worries, I still think it's a valid use case for those that have recyclebin/orphaned_dir outside of root directory. If you could please test this out I've pushed a fix in develop branch if you want to try going back to your previous setup. |
Is your feature request related to a problem? Please elaborate.
Currently if a file is in the recycle bin, or in the orphaned directory, it does not get included in the list of files to deduct from the Hardlink count, meaning that files can flip/flop in noHL depending on whether there is some content in the recycle bin or not
Describe the solution you'd like
When doing a lookup for
get_inode_count
https://github.com/StuffAnThings/qbit_manage/blob/master/modules/util.py#L536 include the foldersrecycle_bin
andorphaned_dir
Does your solution involve any of the following?
Describe alternatives you've considered
Who will this benefit?
Anyone using noHL and Orphaned or RecyleBin features
Additional Information
No response
The text was updated successfully, but these errors were encountered: