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

Fix multiple matching filters with different sizes #211

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hiphopotamus
Copy link

@hiphopotamus hiphopotamus commented May 1, 2021

When two or more filters have different size ranges but both match an announcement, if the filter with the non-matching size is evaluated first, the announcement will fail to match. It will never be evaluated against any subsequent matches which might have an acceptable size.

This change will cause the filters to be re-evaluated after the torrent has been download in the case that the size fails to match.

Fixes #201

I didn't see #202 when I made this, but this is an alternative approach which only needs to download the torrent once.

@hiphopotamus hiphopotamus force-pushed the master branch 4 times, most recently from 5fb4b32 to 76c7804 Compare May 11, 2021 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Torrent size as hard filtering criteria
1 participant