Skip to content

Commit

Permalink
Fix release types detection to avoid false blocks (#439)
Browse files Browse the repository at this point in the history
* Update filter_telesync

* Update filter_cam

* Update included_rx to search whole keyword to avoid false matches.
  • Loading branch information
antonsoroko authored Oct 2, 2024
1 parent 40dd0eb commit 0de57c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions burst/filtering.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def __init__(self):
'filter_dvdscr': [r'dvd\-?scr'],
'filter_screener': ['screener|scr'],
'filter_3d': ['3d'],
'filter_telesync': ['telesync|ts|tc'],
'filter_cam': [r'cam|hd\-?cam'],
'filter_telesync': ['telesync|ts|telecine|tc|hdts'],
'filter_cam': [r'cam|cam\-?rip|hd\-?cam'],
'filter_tvrip': [r'tv\-?rip|sat\-?rip|dvb'],
'filter_iptvrip': [r'iptv\-?rip'],
'filter_vhsrip': [r'vhs\-?rip'],
Expand Down Expand Up @@ -684,7 +684,7 @@ def included_rx(self, value, keys):
"""
value = ' ' + value.lower() + ' '
for key in keys:
rr = r'\W+(' + key + r')\W*'
rr = r'\W+(' + key + r')\W+'
if re.search(rr, value):
return True
return False
Expand Down

0 comments on commit 0de57c9

Please sign in to comment.