Browse Source

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

Add garbage name handling to name parser.
pull/993/head
JackDandy 8 years ago
parent
commit
ee70efe082
  1. 2
      CHANGES.md
  2. 3
      sickbeard/name_parser/parser.py
  3. 5
      sickbeard/name_parser/regexes.py

2
CHANGES.md

@ -115,6 +115,8 @@
* Change improve handling of relative download links from providers * Change improve handling of relative download links from providers
* Change enable TorrentBytes provider * 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 * 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] [develop changelog]

3
sickbeard/name_parser/parser.py

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

5
sickbeard/name_parser/regexes.py

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

Loading…
Cancel
Save