List of paths or files to ignore in every new torrent #11807

Closed
opened 2026-02-21 21:57:36 -05:00 by deekerman · 22 comments
Owner

Originally created by @8tm on GitHub (Mar 3, 2021).

Create list for users so they could add paths or file-names which should always be ignored / deselected - something like:

"List of files that will not be downloaded 'they will be deselected' in all of new torrents"
"Globally ignored files/folders"
Or other name.

And user can add his file-names like:

"! Want YOU more -CLIK.url"
"LoGo.png"
"Downloaded from ServerName.info.txt"
"Torrent downloaded from ServerAddress.com.txt"
"RARBG_DO_NOT_MIRROR.exe"
"RARBG.txt"
"Up by UserName.gif"
"serie.name.s01e02.1080p.web.h264-something.nfo"

or paths when someone wants to download only first season and download rest of Series later or don't want to download specific folder:
"Season2/"
"Season3/"
"Season4/"
"Season5/"
"Season6/"
"Season7/"
"Season8/"
"Season9/"
"Season10/"
"Season11/"
"Season12/"

Originally created by @8tm on GitHub (Mar 3, 2021). Create list for users so they could add paths or file-names which should always be ignored / deselected - something like: "List of files that will not be downloaded 'they will be deselected' in all of new torrents" "Globally ignored files/folders" Or other name. And user can add his file-names like: "! Want YOU more -CLIK.url" "LoGo.png" "Downloaded from ServerName.info.txt" "Torrent downloaded from ServerAddress.com.txt" "RARBG_DO_NOT_MIRROR.exe" "RARBG.txt" "Up by UserName.gif" "serie.name.s01e02.1080p.web.h264-something.nfo" or paths when someone wants to download only first season and download rest of Series later or don't want to download specific folder: "Season2/" "Season3/" "Season4/" "Season5/" "Season6/" "Season7/" "Season8/" "Season9/" "Season10/" "Season11/" "Season12/"
deekerman 2026-02-21 21:57:36 -05:00
Author
Owner

@thalieht commented on GitHub (Mar 3, 2021):

Related / duplicate of #3369
If you don't already know, most of the stuff you mentioned are usually small enough that will be downloaded anyway in cross file pieces. The only difference is that they will go in the .parts file instead of appearing in your file manager.

@thalieht commented on GitHub (Mar 3, 2021): Related ~~/ duplicate of~~ #3369 If you don't already know, most of the stuff you mentioned are usually small enough that will be downloaded anyway in cross file pieces. The only difference is that they will go in the .parts file instead of appearing in your file manager.
Author
Owner

@8tm commented on GitHub (Mar 3, 2021):

It's not the same. #3369 can be part of this solution (as a extension filter - for example don't select any of *.jpg images in new torrent)

It's not about 'not downloading files' but it's about 'not saving/not displaying' them in folder - just by deselecting all files/folders in torrent window when torrents start to downloading.

Files/folders added by user in settings can be used to deselect files in list of files to download when torrent starts. I know they will be downloaded (if they are small enough) but I'll never see them in torrent download folder.

obraz

De selecting (or removing) all undesirable / unnecessary files at every time is annoying.

.parts files are fine, even now I always see them in my main download folder.

@8tm commented on GitHub (Mar 3, 2021): It's not the same. #3369 can be part of this solution (as a extension filter - for example don't select any of *.jpg images in new torrent) It's not about 'not downloading files' but it's about 'not saving/not displaying' them in folder - just by deselecting all files/folders in torrent window when torrents start to downloading. Files/folders added by user in settings can be used to deselect files in list of files to download when torrent starts. I know they will be downloaded (if they are small enough) but I'll never see them in torrent download folder. ![obraz](https://user-images.githubusercontent.com/42252259/109851463-ff29ee80-7c53-11eb-82fc-7b4bc2a56d2e.png) De selecting (or removing) all undesirable / unnecessary files at every time is annoying. .parts files are fine, even now I always see them in my main download folder.
Author
Owner

@8tm commented on GitHub (Apr 30, 2021):

Why this issue is closed?
#14765 is also closed.

@8tm commented on GitHub (Apr 30, 2021): Why this issue is closed? #14765 is also closed.
Author
Owner

@pdfrg commented on GitHub (Jan 18, 2024):

I am using the "Preferences > Downloads > Excluded file names" feature, which works great for individual files.
e.g. "*.exe" and "sample.*"

However, I cannot figure out how to get it to exclude entire subfolders.
e.g. "Featurettes" and "Extras"

I have tried things like
"*Extras*"
"Extras/*"
but these do not work.

Sometimes these folders contain gigabytes of data that I do not want. Am I missing something, or is this not possible currently? If it is not, I would love to have the ability, so that I don't have to go through every torrent and de-select each directory.

Thank you.

@pdfrg commented on GitHub (Jan 18, 2024): I am using the "Preferences > Downloads > Excluded file names" feature, which works great for individual files. e.g. "\*.exe" and "sample.*" However, I cannot figure out how to get it to exclude entire subfolders. e.g. "Featurettes" and "Extras" I have tried things like "\*Extras*" "Extras/*" but these do not work. Sometimes these folders contain gigabytes of data that I do not want. Am I missing something, or is this not possible currently? If it is not, I would love to have the ability, so that I don't have to go through every torrent and de-select each directory. Thank you.
Author
Owner

@cheater commented on GitHub (Jan 18, 2024):

i don't really know, but i have a hunch that for every file that's in a torrent, libtorrent keeps the file name and the relative path where the file is stored in separate fields of a struct, and qbittorrent is only checking the file name field and not the relative path. so that's what needs to be fixed.

@cheater commented on GitHub (Jan 18, 2024): i don't really know, but i have a hunch that for every file that's in a torrent, libtorrent keeps the file name and the relative path where the file is stored in separate fields of a struct, and qbittorrent is only checking the file name field and not the relative path. so that's what needs to be fixed.
Author
Owner

@glassez commented on GitHub (Jan 18, 2024):

libtorrent keeps the file name and the relative path where the file is stored in separate fields of a struct

It is incorrect.
But qBittorrent really apply it to filenames only:
github.com/qbittorrent/qBittorrent@00372dd559/src/base/bittorrent/sessionimpl.cpp (L2816)

@glassez commented on GitHub (Jan 18, 2024): > libtorrent keeps the file name and the relative path where the file is stored in separate fields of a struct It is incorrect. But qBittorrent really apply it to filenames only: https://github.com/qbittorrent/qBittorrent/blob/00372dd559dedd19e3bcb66db8e7d5faf597d4b2/src/base/bittorrent/sessionimpl.cpp#L2816
Author
Owner

@cheater commented on GitHub (Jan 18, 2024):

hmm, looks like it isn't a hard fix

@cheater commented on GitHub (Jan 18, 2024): hmm, looks like it isn't a hard fix
Author
Owner

@glassez commented on GitHub (Jan 18, 2024):

hmm, looks like it isn't a hard fix

Looks like it was done intentionally. I wonder why? (Maybe it was discussed, but I don't remember.)

@glassez commented on GitHub (Jan 18, 2024): > hmm, looks like it isn't a hard fix Looks like it was done intentionally. I wonder why? (Maybe it was discussed, but I don't remember.)
Author
Owner

@cheater commented on GitHub (Jan 18, 2024):

it was committed by @thalieht - would you mind letting us know the reason it's like that? TY

@cheater commented on GitHub (Jan 18, 2024): it was committed by @thalieht - would you mind letting us know the reason it's like that? TY
Author
Owner

@thalieht commented on GitHub (Jan 18, 2024):

it was committed by @thalieht - would you mind letting us know the reason it's like that? TY

@mxtsdev is the author of this feature. I just changed the indentation there.

@thalieht commented on GitHub (Jan 18, 2024): >it was committed by @thalieht - would you mind letting us know the reason it's like that? TY @mxtsdev is the author of this feature. I just changed the indentation there.
Author
Owner

@cheater commented on GitHub (Jan 18, 2024):

right, sorry, thanks. @mxtsdev would you mind chiming in? thanks

@cheater commented on GitHub (Jan 18, 2024): right, sorry, thanks. @mxtsdev would you mind chiming in? thanks
Author
Owner

@pdfrg commented on GitHub (Feb 1, 2024):

OK it has been 2 weeks. @mxtsdev are you available to comment? If not, who else to forward this to? Thanks.

@pdfrg commented on GitHub (Feb 1, 2024): OK it has been 2 weeks. @mxtsdev are you available to comment? If not, who else to forward this to? Thanks.
Author
Owner

@cheater commented on GitHub (Feb 1, 2024):

mxtsdev has no activity since october. i suggest just disregarding this, it doesn't matter. if bugs start happening because if it we'll know soon enough.

@cheater commented on GitHub (Feb 1, 2024): mxtsdev has no activity since october. i suggest just disregarding this, it doesn't matter. if bugs start happening because if it we'll know soon enough.
Author
Owner

@cheater commented on GitHub (Feb 1, 2024):

maybe it's because paths are different on unix vs windows, and they didn't want to deal with that during the matching.

@cheater commented on GitHub (Feb 1, 2024): maybe it's because paths are different on unix vs windows, and they didn't want to deal with that during the matching.
Author
Owner

@pdfrg commented on GitHub (Feb 1, 2024):

Sorry, I don't follow. Did you already make a change that will allow to filter folders? If so, THANK YOU

@pdfrg commented on GitHub (Feb 1, 2024): Sorry, I don't follow. Did you already make a change that will allow to filter folders? If so, THANK YOU
Author
Owner

@cheater commented on GitHub (Feb 1, 2024):

no, but the code as it is right now takes the complete path and strips it to just the name of the file, so that's what @glassez meant when he said it's "done on purpose". i was just speculating that this was the purpose.

@cheater commented on GitHub (Feb 1, 2024): no, but the code as it is right now takes the complete path and strips it to just the name of the file, so that's what @glassez meant when he said it's "done on purpose". i was just speculating that this was the purpose.
Author
Owner

@8tm commented on GitHub (Mar 7, 2024):

I think after almost 2 months without response from author, we can change that :)

This task is now 3 years old 😃

@8tm commented on GitHub (Mar 7, 2024): I think after almost 2 months without response from author, we can change that :) This task is now 3 years old :smiley:
Author
Owner

@pdfrg commented on GitHub (Mar 27, 2024):

Whether it was decided not to be able to exclude directories on purpose or not, I think it is a legitimate request. As mentioned, in many cases these contain gigabytes of files. This is a significant waste for those who do not have fiber internet or unlimited download quotas. I'd appreciate it very much if this would be considered/re-considered. Thanks.

@pdfrg commented on GitHub (Mar 27, 2024): Whether it was decided not to be able to exclude directories on purpose or not, I think it is a legitimate request. As mentioned, in many cases these contain gigabytes of files. This is a significant waste for those who do not have fiber internet or unlimited download quotas. I'd appreciate it very much if this would be considered/re-considered. Thanks.
Author
Owner

@iansebryk commented on GitHub (May 1, 2024):

any word on whether or not we can filter folders yet? getting sick of having to retroactively delete clogged folders that shouldn't have been downloaded to begin with.

@iansebryk commented on GitHub (May 1, 2024): any word on whether or not we can filter folders yet? getting sick of having to retroactively delete clogged folders that shouldn't have been downloaded to begin with.
Author
Owner

@glassez commented on GitHub (May 30, 2024):

Could you try #20902?

@glassez commented on GitHub (May 30, 2024): Could you try #20902?
Author
Owner

@glassez commented on GitHub (Jun 8, 2024):

Could you try #20902?

Well, if no one has anything to comment on it, I'll merge it as it is.

@glassez commented on GitHub (Jun 8, 2024): > Could you try #20902? Well, if no one has anything to comment on it, I'll merge it as it is.
Author
Owner

@8tm commented on GitHub (Jun 11, 2024):

Do it before this task will be 4 years old 😃

@8tm commented on GitHub (Jun 11, 2024): Do it before this task will be 4 years old 😃
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#11807
No description provided.