Homebrew on arm64 has a different prefix

This commit is contained in:
Alberto Sottile 2021-01-21 18:14:06 +01:00
parent 4dd7912ff8
commit def31f568d

View File

@ -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()