mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Add file name to possible names in history lookup post processing.
Add garbage name handling to name parser.
This commit is contained in:
parent
7518837d4f
commit
ee70efe082
3 changed files with 10 additions and 0 deletions
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue