Merge pull request #4 from lundwall/master

Escape square brackets in regex
pull/5/head
TRaSH 4 years ago committed by GitHub
commit 86833665dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -48,10 +48,10 @@ fwp = re.sub('(?i)-Rakuv\.nzb$', '.nzb', fwp)
fwp = re.sub('(?i)-Scrambled\.nzb$', '.nzb', fwp)
fwp = re.sub('(?i)-WhiteRev\.nzb$', '.nzb', fwp)
fwp = re.sub('(?i)-xpost\.nzb$', '.nzb', fwp)
fwp = re.sub('(?i)[eztv]\.nzb$', '.nzb', fwp)
fwp = re.sub('(?i)[TGx]\.nzb$', '.nzb', fwp)
fwp = re.sub('(?i)[TGx]-xpost\.nzb$', '.nzb', fwp)
fwp = re.sub('(?i)[ettv]\.nzb$', '.nzb', fwp)
fwp = re.sub('(?i)\[eztv\]\.nzb$', '.nzb', fwp)
fwp = re.sub('(?i)\[TGx\]\.nzb$', '.nzb', fwp)
fwp = re.sub('(?i)\[TGx\]-xpost\.nzb$', '.nzb', fwp)
fwp = re.sub('(?i)\[ettv\]\.nzb$', '.nzb', fwp)
if fwp:
print('[NZB] NZBNAME=', fwp, sep='')

Loading…
Cancel
Save