forked from autodl-community/autodl-irssi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is quick workaround for the issue "Torrent size as hard filterin…
…g criteria autodl-community#201" autodl-community#201 (comment) The fix is designed to bring minimum changes to the flow and as well as to achieve the end result Two major changes 1. Filter manager performs a soft check on torrent size. When "torrentSizeInBytes" is not defined, treats the condition as satisfied, if defined checks the condition. 2. MatchedRelease when size condition is not met instead of aborting the process triggers the filter check and download process again with additional information of "torrentSizeInBytes" Short comings of the fix 1. Under certain conditions torrent file is downloaded twice. 2nd download of torrent file certainly leads to an action. 2. Time and computation wasted in rechecking the filter Possible improvements 1. Avoid downloading torrent file again, if it is available in temp 2. Parse torrentSizeInBytes from IRC announcement wherever possible
- Loading branch information
Showing
3 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters