megachweng/Dict2Anki

MacOS 下,发音文件下载失败

dotmark opened this issue · 5 comments

[23/10/2022 20:20:39][ WARNING] -- 下载AmEPron_invariant.mp3:http://dict.youdao.com/dictvoice?audio=invariant&type=2异常: [Errno 30]
Read-only file system: 'AmEPron_invariant.mp3' - (dict2Anki.workers.AudioDownloadWorker)

分析发现addonWindow.py的这行语句里没有路径
audiosDownloadTasks.append((f"{whichPron}{wordItemData['term']}.mp3", wordItemData[whichPron],))
改成如下形式可下载成功
audiosDownloadTasks.append((f"/Users/testuser/Library/Application Support/Anki2/账户1/collection.media/{whichPron}
{wordItemData['term']}.mp3", wordItemData[whichPron],))

fdd92 commented

谢谢。这里遇到同样问题,照着改完后可以正常下载发音。