Skip to content

Fix multiple matching filters with different sizes#211

Open
hiphopotamus wants to merge 1 commit into
autodl-community:masterfrom
hiphopotamus:master
Open

Fix multiple matching filters with different sizes#211
hiphopotamus wants to merge 1 commit into
autodl-community:masterfrom
hiphopotamus:master

Conversation

@hiphopotamus

@hiphopotamus hiphopotamus commented May 1, 2021

Copy link
Copy Markdown

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