Add file name to possible names in history lookup post processing.

Add garbage name handling to name parser.
This commit is contained in:
JackDandy 2017-10-25 04:31:49 +01:00
parent 7518837d4f
commit ee70efe082
3 changed files with 10 additions and 0 deletions

View file

@ -115,6 +115,8 @@
* Change improve handling of relative download links from providers
* Change enable TorrentBytes provider
* Change after SG is updated, don't attempt to send a Plex client notifications if there is no client host set
* Add file name to possible names in history lookup post processing
* Add garbage name handling to name parser
[develop changelog]

View file

@ -115,6 +115,9 @@ class NameParser(object):
if not match:
continue
if 'garbage_name' == cur_regex_name:
return
result = ParseResult(new_name)
result.which_regex = [cur_regex_name]
result.score = 0 - cur_regex_num

View file

@ -19,6 +19,11 @@
# all regexes are case insensitive
normal_regexes = [
('garbage_name',
'''
^[a-zA-Z0-9]{3,}$
'''
),
('standard_repeat',
# Show.Name.S01E02.S01E03.Source.Quality.Etc-Group
# Show Name - S01E02 - S01E03 - S01E04 - Ep Name