diff options
author | morpheus65535 <[email protected]> | 2022-03-11 22:18:36 -0500 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2022-03-11 22:18:36 -0500 |
commit | 040ddb236269c7a27d5d4f9c7fe708e53caba72f (patch) | |
tree | 545a2ad27de8f4723238a7b849f96db012efbf6c /libs/subliminal_patch/exceptions.py | |
parent | 36f8472e281c958df0d7afbbb9aa24666faff364 (diff) | |
download | bazarr-040ddb236269c7a27d5d4f9c7fe708e53caba72f.tar.gz bazarr-040ddb236269c7a27d5d4f9c7fe708e53caba72f.zip |
Improved throttling of LegendasDivx provider to prevent IP address blocking by reaching 150 searches a day. #1757v1.0.4-beta.6
Diffstat (limited to 'libs/subliminal_patch/exceptions.py')
-rw-r--r-- | libs/subliminal_patch/exceptions.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/subliminal_patch/exceptions.py b/libs/subliminal_patch/exceptions.py index 8b931425a..d257520b5 100644 --- a/libs/subliminal_patch/exceptions.py +++ b/libs/subliminal_patch/exceptions.py @@ -25,6 +25,12 @@ class IPAddressBlocked(ProviderError): pass +class SearchLimitReached(ProviderError): + """Exception raised when maximum searches for a provider have been reached.""" + + pass + + class MustGetBlacklisted(ProviderError): def __init__(self, id: str, media_type: str): super().__init__() |