Homebrew on arm64 has a different prefix
This commit is contained in:
parent
4dd7912ff8
commit
def31f568d
@ -590,7 +590,7 @@ class MpvPlayer(BasePlayer):
|
|||||||
# to allow that version of python to be executed in the mpv subprocess.
|
# to allow that version of python to be executed in the mpv subprocess.
|
||||||
if isMacOS():
|
if isMacOS():
|
||||||
try:
|
try:
|
||||||
env['PATH'] = '/usr/local/bin:/usr/bin'
|
env['PATH'] = '/opt/homebrew/bin:/usr/local/bin:/usr/bin'
|
||||||
ytdl_path = subprocess.check_output(['which', 'youtube-dl'], text=True, env=env).rstrip('\n')
|
ytdl_path = subprocess.check_output(['which', 'youtube-dl'], text=True, env=env).rstrip('\n')
|
||||||
with open(ytdl_path, 'rb') as f:
|
with open(ytdl_path, 'rb') as f:
|
||||||
ytdl_shebang = f.readline()
|
ytdl_shebang = f.readline()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user