diff options
author | destpstrzy <[email protected]> | 2024-11-25 05:33:22 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-11-24 23:33:22 -0500 |
commit | 42d569faa357d49f4779cf5e9effe9f818eb9cb7 (patch) | |
tree | a7fc07fe81ba336e0b7de6be2560cf184563bea5 /custom_libs/subliminal/providers | |
parent | 42c051ea1c722f0ffacbe005f8b16eaaaf09345a (diff) | |
download | bazarr-42d569faa357d49f4779cf5e9effe9f818eb9cb7.tar.gz bazarr-42d569faa357d49f4779cf5e9effe9f818eb9cb7.zip |
Added Napiprojekt provider releases info and a new options to filter subtitles based on uploader
Diffstat (limited to 'custom_libs/subliminal/providers')
-rw-r--r-- | custom_libs/subliminal/providers/napiprojekt.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/custom_libs/subliminal/providers/napiprojekt.py b/custom_libs/subliminal/providers/napiprojekt.py index 75aba3957..940083b71 100644 --- a/custom_libs/subliminal/providers/napiprojekt.py +++ b/custom_libs/subliminal/providers/napiprojekt.py @@ -67,8 +67,10 @@ class NapiProjektProvider(Provider): server_url = 'http://napiprojekt.pl/unit_napisy/dl.php' subtitle_class = NapiProjektSubtitle - def __init__(self): + def __init__(self, only_authors=None, only_real_names=None): self.session = None + self.only_authors = only_authors + self.only_real_names = only_real_names def initialize(self): self.session = Session() @@ -78,6 +80,8 @@ class NapiProjektProvider(Provider): self.session.close() def query(self, language, hash): + if self.only_authors or self.only_real_names: + return None params = { 'v': 'dreambox', 'kolejka': 'false', |