Skip to content

Commit

Permalink
Allow regex directly from config
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalec committed May 26, 2022
1 parent c3fa726 commit 3e40abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deemon/cmd/refresh.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def filter_artist_releases(self, payload: dict):
if release['future']:
continue

if any([re.search(fr'(?i)\((.*?)({ex})(.*?)\)', release['title']) for ex in config.exclusions()]):
if any([re.search(ex, release['title']) for ex in config.exclusions()]):
logger.debug(f"Skipping release matching one or more exclusions: {release['title']}")
continue

Expand Down

0 comments on commit 3e40abb

Please sign in to comment.