mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 13:07:09 +01:00
plugin importfeeds: fix symlink creation when it already exists
This commit is contained in:
parent
b20367dd41
commit
e9104b6775
1 changed files with 3 additions and 1 deletions
|
|
@ -87,7 +87,9 @@ def _record_items(lib, basename, items):
|
|||
|
||||
if 'link' in _feeds_formats:
|
||||
for path in paths:
|
||||
os.symlink(path, os.path.join(_feeds_dir, os.path.basename(path)))
|
||||
dest = os.path.join(_feeds_dir, os.path.basename(path))
|
||||
if not os.path.exists(dest):
|
||||
os.symlink(path, dest)
|
||||
|
||||
@ImportFeedsPlugin.listen('library_opened')
|
||||
def library_opened(lib):
|
||||
|
|
|
|||
Loading…
Reference in a new issue