mirror of
https://github.com/beetbox/beets.git
synced 2025-12-24 17:43:52 +01:00
[beets/library] Simplify directory logic
This commit is contained in:
parent
d3bc27a58f
commit
cd360b6a99
1 changed files with 1 additions and 6 deletions
|
|
@ -1609,12 +1609,7 @@ class Library(dbcore.Database):
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue