Merge pull request #685 from ArjixWasTaken/patch-32
the extractors getter now uses actual regex instead of substring searchmaster
commit
9e3df85d3a
|
@ -1,4 +1,6 @@
|
|||
from importlib import import_module
|
||||
import re
|
||||
|
||||
|
||||
ALL_EXTRACTORS = [
|
||||
{
|
||||
|
@ -186,7 +188,7 @@ ALL_EXTRACTORS = [
|
|||
|
||||
def get_extractor(name):
|
||||
for extractor in ALL_EXTRACTORS:
|
||||
if extractor['regex'] in name.lower():
|
||||
if re.match(extractor['regex'], name.lower()):
|
||||
module = import_module(
|
||||
'anime_downloader.extractors.{}'.format(
|
||||
extractor['modulename'])
|
||||
|
|
Loading…
Reference in New Issue