-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Automatic Category Assignment #5779
Comments
Users ask for this before, also with setting different file path to each of the categories but it's not like a priority. I don't even think they are considering implementing this in a near future. |
I think this request is also covered in #5201. |
What is the point of automatic torrent management if you have to manually assign the category? All I want is to automatically separate my .mp4 files into my video directory. |
I second that. A way to auto-assign the categories based on torrentname by regex or by tracker would be handy! |
For an example of this, you could take a look at the LabelPlus plugin for deluge, which has all of this functionality and makes it painless to auto-categorize torrents based on torrent/tracker name. Something like this would be immensely helpful! |
This comment has been minimized.
This comment has been minimized.
Wow this issue opened for 6 years already... 🤔 For example the old Shareaza has a "Download groups" with a similar functionality: The "Filters" field matches either any part of download file name or also matches any available metadata including for example tracker URL substring, by default it contains a file extensions according current schema ("File type"). "BitTorrent downloads" option effectively matches any file downloaded using torrent since Shareaza is a multi-protocol client, in qB case it can be for example "DHT-only" checkbox. |
It's a little amazing that there's a widely used torrent client without this feature. I'd live to switch away from Deluge since it's so incredibly buggy but this really is a deal breaker. It's so much more difficult to categorise hundreds or thousands of torrents manually. |
Doesn't emule download single file per task? |
@glassez Deluge's labelplus applies the regex to all files, and if any of them match then the label applies. |
Then it is possible that different files will match the different categories so only first match will win. (Although it is also possible that single-file torrent could match several categories.) |
Yes, Deluge orders the categories from top to bottom, with the first match dictating the label. Not saying it's the best solution, but it is a solution. I had to add a negative regex match to make it easier but it does work if you only use file matches as the last level of possible resort. |
Hilarious that this is still open, does qBittorent have a plugins interface? |
Any volunteers to draw up a proposal ? |
God, this is 8 years old! Almost all other torrent clients and download managers have a similar feature, but the good qBittorrent doesn't? |
I spent some timing scoping out the backend portion of the implementation. When making rules based off the torrent descriptor or when using a torrent file with built-in metadata, it is reasonably straightforward. Most of the complexity comes when torrent metadata needs to be downloaded, since this happens asynchronously. Seems doable though. |
I have a basic prototype working.
Example Rules JSON:
Example applied to a test torrent from https://webtorrent.io/torrents/tears-of-steel.torrent |
I suspect that providing an UI for editing such rules will require an order of magnitude (or even several orders of magnitude) more effort. |
@tgregerson |
I was thinking the same thing. My plan for tackling this was to try to submit the non-GUI version first, assuming that is OK with the maintainers. This way the GUI could be tackled as a separate PR, and not block progress on the core functionality.
So far the two important factors I've run into are whether full metadata is initially available (e.g. torrent file vs magnet link) and whether the user has enabled the add torrent GUI from my earlier screenshot.
|
In general, I agree. Although there may be difficulties in correctly implementing it (from the perspective of the application architecture). But we will be able to talk about this in detail only when you provide the PR. |
Adds a system for configuring a set of rules that modify torrent parameters based on the torrent's metadata. Rules are specified via a JSON file loaded on startup. Closes qbittorrent#5779.
@tgregerson thanks for your work. I've read through the thread but I haven't yet understood fully how this would work.
I would love to test this and see if I can get QB to automatically attach categories. |
The PR has not been approved yet, so these answers are subject to change.
The file will be stored in the preferences directory. qBt will automatically check for the file on startup. If the file exists, then any rules you have defined will be applied automatically every time you add a new torrent.
No interaction required. |
@tgregerson terrific, I hope it gets approved soon. Thanks again! |
I'd love to see automatic category assignment not only by keywords, but by other possible criteria, such as total torrent size or tracker. |
The initial PR supports using trackers as a condition. I'm open to adding other options such as torrent size in subsequent PRs, provided the initial one is accepted. |
Bit outside of the scope of this current issue, but we've come a long way. Can't wait for the PR pull.
I had something similar except it was just a daemon script running agnostic of qBit since I'm not well versed in C++ |
I've been searching for quite a bit and i couldnt find anything.
I would love a system that automatically picks the category according to key words associated with it.
Good'ol emule used to have this function:
Automatic Category Assignment
When starting new downloads, they can be assigned automatically to this category, if the filename matches a given pattern. | is used to separate different keywords and * can be used as a wildcard for an arbitrary string.
Example: .avi|a.*
This would assign new files with the extension 'avi', and filenames starting with an 'a' to this category.
(http://www.emule-project.net/home/perl/help.cgi?l=1&rm=show_topic&topic_id=143)
I believe it would be a great addtion to qbit's current features.
Thanks for a great product.
The text was updated successfully, but these errors were encountered: