diff --git a/ankiqt/ui/facteditor.py b/ankiqt/ui/facteditor.py index 9abcfb4e7..7e4d2d3a8 100644 --- a/ankiqt/ui/facteditor.py +++ b/ankiqt/ui/facteditor.py @@ -600,10 +600,11 @@ class FactEditor(object): w.insertHtml('[sound:%s]' % path) def onRecSound(self): + self.initMedia() w = self.focusedEdit() file = getAudio(self.parent) if file: - self._addSound(file, widget=w) + self._addSound(unicode(file), widget=w) class FactEdit(QTextEdit): diff --git a/mac/test.sh b/mac/test.sh new file mode 100755 index 000000000..151f9d2b6 --- /dev/null +++ b/mac/test.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +cd /Volumes/Two/anki +echo "syncing updates..." +rsync -av reflex:Lib/code/libanki --exclude .git --exclude build --exclude dist --delete . +rsync -av reflex:Lib/code/ankiqt --exclude .git --exclude build --exclude dist --delete . +./ankiqt/anki