File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 30
30
import inspect
31
31
import json
32
32
import os
33
+ import platform
33
34
import select
34
35
import socket
35
36
import subprocess
40
41
from queue import Empty , Full , Queue
41
42
from shutil import which
42
43
43
- from anki .utils import is_win
44
+ from anki .utils import is_mac , is_win
44
45
45
46
46
47
class MPVError (Exception ):
@@ -88,11 +89,13 @@ class MPVBase:
88
89
"--keep-open=no" ,
89
90
"--autoload-files=no" ,
90
91
"--gapless-audio=no" ,
91
- "--no-ytdl" ,
92
92
]
93
93
94
94
if is_win :
95
95
default_argv += ["--af-add=lavfi=[apad=pad_dur=0.150]" ]
96
+ if not is_mac or platform .machine () != "arm64" :
97
+ # our arm64 mpv build doesn't support this option (compiled out)
98
+ default_argv += ["--no-ytdl" ]
96
99
97
100
def __init__ (self , window_id = None , debug = False ):
98
101
self .window_id = window_id
You can’t perform that action at this time.
0 commit comments