Skip to content

Commit

Permalink
fetchart: simplify the way the config is read
Browse files Browse the repository at this point in the history
Co-authored-by: Šarūnas Nejus <[email protected]>
  • Loading branch information
mgoltzsche and snejus authored Sep 13, 2024
1 parent 90f0ae2 commit 21799fb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions beetsplug/fetchart.py
Original file line number Diff line number Diff line change
Expand Up @@ -1443,6 +1443,4 @@ def batch_fetch_art(self, lib, albums, force, quiet):


def _is_source_file_removal_enabled():
delete_enabled = config["import"]["delete"].get(bool)
move_enabled = config["import"]["move"].get(bool)
return delete_enabled or move_enabled
return config["import"]["delete"] or config["import"]["move"]

0 comments on commit 21799fb

Please sign in to comment.