aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Lobbenmeier <36509607+StefanLobbenmeier@users.noreply.github.com>2022-06-28 17:09:32 -0700
committerGitHub <noreply@github.com>2022-06-29 05:39:32 +0530
commit63da2d0911373e309aab797b062c4e372292e096 (patch)
treee2817344e373a4e3189765ad804b7f65f08c2eff
parent1db146127292e31fa8e8cb47e9ce2b696bbe173b (diff)
downloadhypervideo-pre-63da2d0911373e309aab797b062c4e372292e096.tar.lz
hypervideo-pre-63da2d0911373e309aab797b062c4e372292e096.tar.xz
hypervideo-pre-63da2d0911373e309aab797b062c4e372292e096.zip
Fix bug in 6d916fe709a38e8c4c69b73843acf170b5165931 (#4219)
Update only to legacy version on old MacOS Authored by: StefanLobbenmeier
-rw-r--r--yt_dlp/update.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yt_dlp/update.py b/yt_dlp/update.py
index 41c11677c..c42144337 100644
--- a/yt_dlp/update.py
+++ b/yt_dlp/update.py
@@ -25,6 +25,8 @@ def _get_variant_and_executable_path():
return 'py2exe', path
if sys._MEIPASS == os.path.dirname(path):
return f'{sys.platform}_dir', path
+ if sys.platform == 'darwin' and version_tuple(platform.mac_ver()[0]) < (10, 15):
+ return 'darwin_legacy_exe', path
return f'{sys.platform}_exe', path
path = os.path.dirname(__file__)
@@ -45,6 +47,7 @@ _FILE_SUFFIXES = {
'py2exe': '_min.exe',
'win32_exe': '.exe',
'darwin_exe': '_macos',
+ 'darwin_legacy_exe': '_macos_legacy',
'linux_exe': '_linux',
}