mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Merge pull request #1054 from JackDandy/feature/AddRemoveNoneReleaseStuff
Change remove some non-release group stuff from newnab results.
This commit is contained in:
commit
6907e2d9a8
2 changed files with 3 additions and 1 deletions
|
@ -89,6 +89,7 @@
|
|||
* Add 'local_datetime' to comming eps + runtime
|
||||
* Add X-Filename response header to getbanner, getposter
|
||||
* Add X-Fanartname response header for sg.show.getfanart
|
||||
* Change remove some non-release group stuff from newnab results
|
||||
|
||||
[develop changelog]
|
||||
|
||||
|
|
|
@ -450,7 +450,8 @@ class NewznabProvider(generic.NZBProvider):
|
|||
r_found = True
|
||||
while r_found:
|
||||
r_found = False
|
||||
for pattern, repl in ((r'(?i)-Obfuscated$', ''), (r'(?i)-postbot$', ''), (r'(?i)[-.]English$', '')):
|
||||
for pattern, repl in ((r'(?i)-Scrambled$', ''), (r'(?i)-BUYMORE$', ''), (r'(?i)-Obfuscated$', ''),
|
||||
(r'(?i)-postbot$', ''), (r'(?i)[-.]English$', '')):
|
||||
if re.search(pattern, title):
|
||||
r_found = True
|
||||
title = re.sub(pattern, repl, title)
|
||||
|
|
Loading…
Reference in a new issue