Skip to content
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

Implement category blacklist / whitelist #395

Open
PuppyLover101 opened this issue Mar 19, 2023 · 11 comments
Open

Implement category blacklist / whitelist #395

PuppyLover101 opened this issue Mar 19, 2023 · 11 comments
Labels
bt client feature New feature or request

Comments

@PuppyLover101
Copy link

Would be very useful if we could add a blacklist / whitelist to categories, so certain categories aren't cross-seeded.

Personally, I use the post-import feature on sonarr to move my torrents to another category with another save path after importing to sonarr. Cross-seeding always fails for torrents in this stage, as there are no files on tv-sonarr.crosseed save path.

Thank you.

@mokahless
Copy link

I'd also love to see a feature like this, but with tags. I have autobrr, sonarr and radarr going and a lot of content from there is set to autodelete after x weeks. If cross-seed runs, it will add permanent versions of these temporary torrents, for the other trackers. Right now, I have to manually go in every once in a while to clear out the torrents cross-seed added, once sonarr/radarr/autobrr deletes the original torrent.

So blacklisting anything with either the relevant sonarr/radarr category or the autobrr tag would be very useful for me.

@robpaolella
Copy link

Strongly agree on getting this added. Would make a huge difference for categories I have like seed-limit, which I have just to satisfy seed limits that weren't met for one reason or another.

@onedr0p
Copy link
Contributor

onedr0p commented Aug 19, 2023

I have a hit-and-run category in qbittorrent that I manually add torrents to if my indexer gives me one (sometimes it just happens), it would be nice to omit that category from cross-seed.

@dylancmds
Copy link

Would love this as well. I use autobrr to snatch and throw away torrents on trackers without HnR rules, cross-seed picks these up and injects them from other trackers. Any way to configure an ignored tag or category can help remedy this. I'd hate to stand up a separate client just for autobrr.

@AndresPineros
Copy link

AndresPineros commented Sep 21, 2023

Yup, this would be great! I have like 1000 book torrents that I don't want to cross-seed because books are in the kilobytes, so there's no point cross-seeding those. Plus, I don't want to abuse the indexers with these unnecessary requests, or make my cross-seed scan super slow to prevent abusing the APIs.

It can be solved in the mean time with the hooks offered by the torrent clients. In qbittorrent it is the " Run external program on torrent finished". Just validate if the category/tags match the ones you want and hardlink/copy of the torrent file to a custom folder. Make cross-seed read from that folder instead of the suggested ones.

#!/bin/bash

categories=( sonarr radarr )
source_folder="/config/qBittorrent/BT_backup"
destination_folder="/cross_seed_offer"

torrent_hash="$1"
torrent_category="$2"
torrent_file="${torrent_hash}.torrent"

for category in "${categories[@]}"; do
  if [ "$torrent_category" == "$category" ]; then
    cp "$source_folder/$torrent_file" "$destination_folder"
    break
  fi
done

@zakkarry zakkarry added feature New feature or request bt client labels Sep 28, 2023
@baloo2
Copy link

baloo2 commented Oct 2, 2023

I would like to have category blacklist as well. Missing this feature a lot.

@backstab5983
Copy link

This would be amazing to have implemented, would be the most desirable new feature in my opinion as it allows to exclude books, music, etc. without having to set includeNonVideos to false!

@ShanaryS
Copy link
Contributor

If this is to be implemented, it should be per indexer similar to #612. This gives the added option of ignoring movie searches for tv trackers and vice versa. Would be nice if dataDirs could be used additionally as well.

@jonandeva
Copy link

I would love this too. For example, I have several hundred music torrents, but I don't want to be searching for them on movie/tv trackers. I'd rather not search them at all, but I do want to have includeNonVideos true.

@zakkarry
Copy link
Collaborator

If this is to be implemented, it should be per indexer similar to #612. This gives the added option of ignoring movie searches for tv trackers and vice versa. Would be nice if dataDirs could be used additionally as well.

This functionality is in the pipeline (completed and being tested further for v6) as you know - as far as category blacklisting goes....this would basically need to be done during prefiltering most likely, and would require #471 if we were to implement it properly (otherwise it would be post-snatch and during injection that it aborts - and that's not really accomplishing the grander scope of the functionality to reduce searches....although technically still blocking the release.

Basically, we would have to implement this in Deluge with labels as well as qBittorrent, and that would require expanding the API usages and data structuring in our current codebase...

While this seems like a simple feature, the proper implementation requires quite a bit of effort and dedication to get functional so we wouldn't later be rewriting the entire thing for sqlite (whenever that happens)...

@zakkarry
Copy link
Collaborator

Given the seeming demand for this feature, I've joined forces with @bakerboy448 who maintains some third-party scripts, and written up a category and tracker blacklist/whitelist bash script you can use to execute the on complete cross-seed command.

It's a basic bash script, and is fairly simple to configure. Simple google search will be able to help you add the necessary commands if you do not understand.

I understand this is not integrated into cross-seed natively, but I figured something was better than nothing for you guys.

Change the $TORRENT_CAT at the bottom to $TORRENT_TRACKER to match the regex on the right side of the =~

https://github.com/bakerboy448/StarrScripts/blob/main/xseed_qbit_cat_filter.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bt client feature New feature or request
Projects
None yet
Development

No branches or pull requests