Change remove some non-release group stuff from newnab results.

This commit is contained in:
Prinz23 2018-02-01 01:06:24 +01:00 committed by JackDandy
parent e2428b56e6
commit 8df50c6cdf
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)