aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-12-31 11:02:24 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-12-31 11:04:02 +0530
commit2fb0f858686c46abc50a0e253245afe750746775 (patch)
tree4357597bb9e7e370d7aa68d09b2b1628bce0f66b
parenta0e526ed4d042c88771cd5669ceb4413d2b8c47f (diff)
downloadhypervideo-pre-2fb0f858686c46abc50a0e253245afe750746775.tar.lz
hypervideo-pre-2fb0f858686c46abc50a0e253245afe750746775.tar.xz
hypervideo-pre-2fb0f858686c46abc50a0e253245afe750746775.zip
[update] Workaround #5632
-rw-r--r--yt_dlp/update.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/yt_dlp/update.py b/yt_dlp/update.py
index ac3e28057..a3a731aef 100644
--- a/yt_dlp/update.py
+++ b/yt_dlp/update.py
@@ -15,7 +15,6 @@ from .utils import (
Popen,
cached_method,
deprecation_warning,
- remove_end,
shell_quote,
system_identifier,
traverse_obj,
@@ -43,7 +42,8 @@ def _get_variant_and_executable_path():
# Ref: https://en.wikipedia.org/wiki/Uname#Examples
if machine[1:] in ('x86', 'x86_64', 'amd64', 'i386', 'i686'):
machine = '_x86' if platform.architecture()[0][:2] == '32' else ''
- return f'{remove_end(sys.platform, "32")}{machine}_exe', path
+ # NB: https://github.com/yt-dlp/yt-dlp/issues/5632
+ return f'{sys.platform}{machine}_exe', path
path = os.path.dirname(__file__)
if isinstance(__loader__, zipimporter):
@@ -74,8 +74,8 @@ def current_git_head():
_FILE_SUFFIXES = {
'zip': '',
'py2exe': '_min.exe',
- 'win_exe': '.exe',
- 'win_x86_exe': '_x86.exe',
+ 'win32_exe': '.exe',
+ 'win32_x86_exe': '_x86.exe',
'darwin_exe': '_macos',
'darwin_legacy_exe': '_macos_legacy',
'linux_exe': '_linux',