Merge branch 'master' into dependabot/pip/mkdocs-minify-plugin-0.5.0

pull/385/head
TRaSH 3 years ago committed by GitHub
commit 8fd172a7eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -54,6 +54,7 @@ fwp = re.sub('(?i)\[TGx\]-xpost\.nzb$', '.nzb', fwp)
fwp = re.sub('(?i)\[ettv\]\.nzb$', '.nzb', fwp) fwp = re.sub('(?i)\[ettv\]\.nzb$', '.nzb', fwp)
fwp = re.sub('(?i)-WRTEAM\.nzb$', '.nzb', fwp) fwp = re.sub('(?i)-WRTEAM\.nzb$', '.nzb', fwp)
fwp = re.sub('(?i)-CAPTCHA\.nzb$', '.nzb', fwp) fwp = re.sub('(?i)-CAPTCHA\.nzb$', '.nzb', fwp)
fwp = re.sub(r'(\-[^-.\n]*)(\-.{4})?\.nzb$', r'\1.nzb', fwp)
if fwp: if fwp:
print('[NZB] NZBNAME=', fwp, sep='') print('[NZB] NZBNAME=', fwp, sep='')

@ -49,7 +49,7 @@ fwp = re.sub('(?i)\[ettv\]$', '', fwp)
fwp = re.sub('(?i)\[TGx\]-xpost$', '', fwp) fwp = re.sub('(?i)\[TGx\]-xpost$', '', fwp)
fwp = re.sub('(?i).mkv-xpost$', '', fwp) fwp = re.sub('(?i).mkv-xpost$', '', fwp)
fwp = re.sub('(?i)-xpost$', '', fwp) fwp = re.sub('(?i)-xpost$', '', fwp)
fwp = re.sub(r'(\-[^-.\n]*)(\-.{4})?$', r'\1', fwp)
print("1") # Accept print("1") # Accept
print(fwp) print(fwp)
print() print()
@ -58,4 +58,4 @@ print()
print() print()
print() print()
# 0 means OK # 0 means OK
sys.exit(0) sys.exit(0)

Loading…
Cancel
Save