diff options
Diffstat (limited to 'gallery_dl/extractor/__init__.py')
| -rw-r--r-- | gallery_dl/extractor/__init__.py | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/gallery_dl/extractor/__init__.py b/gallery_dl/extractor/__init__.py index 6f8867c..53bc726 100644 --- a/gallery_dl/extractor/__init__.py +++ b/gallery_dl/extractor/__init__.py @@ -74,6 +74,7 @@ modules = [ "mangareader", "mangastream", "mangoxo", + "myhentaigallery", "myportfolio", "naver", "newgrounds", @@ -140,7 +141,7 @@ def find(url): """Find a suitable extractor for the given URL""" for cls in _list_classes(): match = cls.pattern.match(url) - if match and cls not in _blacklist: + if match: return cls(match) return None @@ -169,26 +170,10 @@ def extractors(): ) -class blacklist(): - """Context Manager to blacklist extractor modules""" - def __init__(self, categories, extractors=None): - self.extractors = extractors or [] - for cls in _list_classes(): - if cls.category in categories: - self.extractors.append(cls) - - def __enter__(self): - _blacklist.update(self.extractors) - - def __exit__(self, etype, value, traceback): - _blacklist.clear() - - # -------------------------------------------------------------------- # internals _cache = [] -_blacklist = set() _module_iter = iter(modules) |
