Private GIT

Skip to content
Snippets Groups Projects
Commit fd047500 authored by CristianBB's avatar CristianBB
Browse files

by @miigotu , more elegant

parent 6467103e
No related branches found
No related tags found
No related merge requests found
......@@ -364,12 +364,7 @@ class GenericProvider(object):
# parse the file name
try:
if show.is_anime:
method = 'anime'
else:
method = 'normal'
myParser = NameParser(parse_method=method)
myParser = NameParser(parse_method=('normal', 'anime')[show.is_anime])
parse_result = myParser.parse(title)
except InvalidNameException:
logger.log(u"Unable to parse the filename " + title + " into a valid episode", logger.DEBUG)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment