mirror of
https://github.com/beetbox/beets.git
synced 2025-12-28 03:22:39 +01:00
replace os.symlink() with util.link() in importfeeds
This commit is contained in:
parent
3db81a3345
commit
17883bc501
1 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ import os
|
|||
import re
|
||||
|
||||
from beets.plugins import BeetsPlugin
|
||||
from beets.util import mkdirall, normpath, syspath, bytestring_path
|
||||
from beets.util import mkdirall, normpath, syspath, bytestring_path, link
|
||||
from beets import config
|
||||
|
||||
M3U_DEFAULT_NAME = 'imported.m3u'
|
||||
|
|
@ -131,7 +131,7 @@ class ImportFeedsPlugin(BeetsPlugin):
|
|||
for path in paths:
|
||||
dest = os.path.join(feedsdir, os.path.basename(path))
|
||||
if not os.path.exists(syspath(dest)):
|
||||
os.symlink(syspath(path), syspath(dest))
|
||||
link(path, dest)
|
||||
|
||||
if 'echo' in formats:
|
||||
self._log.info(u"Location of imported music:")
|
||||
|
|
|
|||
Loading…
Reference in a new issue