From 2e5b4ae7c3718cd3e048b489894d3844720775b4 Mon Sep 17 00:00:00 2001 From: nimbold <11913706+nimbold@users.noreply.github.com> Date: Mon, 8 Jun 2026 00:38:32 +0330 Subject: [PATCH] fix: pass extractor arguments to yt-dlp download process - Fix: Append --extractor-args youtube:player_client=ios,tv to the MediaDownloadEngine to prevent yt-dlp from falling back to web client and failing with bot detection during download. --- Sources/Firelink/MediaDownloadEngine.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Firelink/MediaDownloadEngine.swift b/Sources/Firelink/MediaDownloadEngine.swift index b0977ac..a7a273e 100644 --- a/Sources/Firelink/MediaDownloadEngine.swift +++ b/Sources/Firelink/MediaDownloadEngine.swift @@ -44,6 +44,7 @@ final class MediaDownloadEngine: @unchecked Sendable { var arguments = [ "--newline", "--ffmpeg-location", ffmpegURL.path, + "--extractor-args", "youtube:player_client=ios,tv", "-o", item.destinationPath ]