Skip to content

Commit

Permalink
[beets/library] Simplify directory logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Arav K. authored and bal-e committed Sep 20, 2024
1 parent d3bc27a commit cd360b6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions beets/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -1609,12 +1609,7 @@ def __init__(
timeout = beets.config["timeout"].as_number()
super().__init__(path, timeout=timeout)

if directory is not None:
self.directory = normpath(directory)
else:
# Use the appropriate platform-specific fallback directory.
music_dir = platformdirs.user_music_path()
self.directory = bytestring_path(music_dir)
self.directory = normpath(directory or platformdirs.user_music_path())

self.path_formats = path_formats
self.replacements = replacements
Expand Down

0 comments on commit cd360b6

Please sign in to comment.