From 61aae31ea3868f6001ee0a978ac0ecf7a429e3ed Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 1 Jan 2026 13:30:29 +0700 Subject: [PATCH] Fix: Upgrade yt-dlp to nightly build to resolve cloud blocking --- backend/requirements.txt | 2 +- backend/services/youtube.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/requirements.txt b/backend/requirements.txt index c08008a..f1a6bd5 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -4,7 +4,7 @@ spotdl pydantic==2.10.4 python-multipart==0.0.20 requests==2.32.3 -yt-dlp==2024.12.23 +yt-dlp @ git+https://github.com/yt-dlp/yt-dlp.git@master ytmusicapi==1.9.1 syncedlyrics pydantic-settings diff --git a/backend/services/youtube.py b/backend/services/youtube.py index 0b43d5a..7755ad7 100644 --- a/backend/services/youtube.py +++ b/backend/services/youtube.py @@ -169,7 +169,7 @@ class YouTubeService: # Use mobile clients to avoid web scraping blocks 'extractor_args': { 'youtube': { - 'player_client': ['android', 'ios'] + 'player_client': ['ios', 'android', 'web'] } } }