mirror of
https://github.com/beetbox/beets.git
synced 2026-03-26 15:24:05 +01:00
Update beetsplug/lyrics.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
eacaa09a07
commit
d4dc46591d
1 changed files with 4 additions and 4 deletions
|
|
@ -1139,12 +1139,12 @@ class LyricsPlugin(LyricsRequestHandler, plugins.BeetsPlugin):
|
|||
|
||||
def is_excluded(self, item: Item) -> bool:
|
||||
"""Return True if the item matches an exclusion rule."""
|
||||
exclude_albums = [
|
||||
exclude_albums = {
|
||||
a.lower() for a in self.config["exclude_albums"].as_str_seq()
|
||||
]
|
||||
exclude_songs = [
|
||||
}
|
||||
exclude_songs = {
|
||||
s.lower() for s in self.config["exclude_songs"].as_str_seq()
|
||||
]
|
||||
}
|
||||
|
||||
if item.album and item.album.lower() in exclude_albums:
|
||||
return True
|
||||
|
|
|
|||
Loading…
Reference in a new issue