From 9e96869f8d0a5819f700bf89fc31643596350a20 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 1 Jan 2026 14:00:10 +0700 Subject: [PATCH] Fix: Force official PyPI index for updates to bypass mirror errors --- backend/api/endpoints/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/api/endpoints/settings.py b/backend/api/endpoints/settings.py index 537cd6d..6982fb2 100644 --- a/backend/api/endpoints/settings.py +++ b/backend/api/endpoints/settings.py @@ -24,7 +24,7 @@ async def update_ytdlp(background_tasks: BackgroundTasks): # Run pip install to upgrade yt-dlp to master logger.info("Starting yt-dlp update...") process = subprocess.run( - [sys.executable, "-m", "pip", "install", "--upgrade", "--force-reinstall", "git+https://github.com/yt-dlp/yt-dlp.git@master"], + [sys.executable, "-m", "pip", "install", "--upgrade", "--force-reinstall", "--index-url", "https://pypi.org/simple", "git+https://github.com/yt-dlp/yt-dlp.git@master"], capture_output=True, text=True, check=True @@ -47,7 +47,7 @@ async def update_spotdl(background_tasks: BackgroundTasks): try: logger.info("Starting spotdl update...") process = subprocess.run( - [sys.executable, "-m", "pip", "install", "--upgrade", "spotdl"], + [sys.executable, "-m", "pip", "install", "--upgrade", "--index-url", "https://pypi.org/simple", "spotdl"], capture_output=True, text=True, check=True