Skip to content

Commit 55d6d49

Browse files
committed
fix play file issue
1 parent bebb28f commit 55d6d49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dict_result.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func SaveVoiceFile(name string, body io.ReadCloser) (string, error) {
198198
func DoPlayFile(aFile string) error {
199199

200200
cmd := exec.Command("mpg123", aFile)
201-
if _, err := exec.LookPath("mpv"); nil != err {
201+
if _, err := exec.LookPath("mpv"); err == nil {
202202
// andoird termux only have mpv
203203
cmd = exec.Command("mpv", aFile)
204204
//log.Println("mpv ", aFile)

0 commit comments

Comments
 (0)