Merge pull request #1054 from JackDandy/feature/AddRemoveNoneReleaseStuff

Change remove some non-release group stuff from newnab results.
This commit is contained in:
JackDandy 2018-02-02 04:30:27 +00:00 committed by GitHub
commit 6907e2d9a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -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]

View file

@ -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)