Skip to content

Commit 9fd767d

Browse files
committed
fix(download): add --ignore-config and debug logging for yt-dlp options
1 parent edbb8ba commit 9fd767d

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

TelegramBot/MediaGet.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ public class MediaGet
5656
OverwriteFiles = true
5757
};
5858

59-
var overrideOptions = new OptionSet();
59+
var overrideOptions = new OptionSet
60+
{
61+
IgnoreConfig = true,
62+
NoCheckCertificates = true
63+
};
6064

6165
string effectiveProxy = Config.proxy;
6266
if (string.IsNullOrEmpty(effectiveProxy) && Config.torEnabled)
@@ -70,6 +74,9 @@ public class MediaGet
7074
if (!string.IsNullOrEmpty(Config.cookiesFile))
7175
overrideOptions.Cookies = Config.cookiesFile;
7276

77+
Log.Debug("yt-dlp options: proxy={Proxy}, cookies_browser={Browser}, ignore_config=true",
78+
effectiveProxy, Config.cookiesFromBrowser);
79+
7380
DateTime lastProgressUpdate = DateTime.MinValue;
7481
string lastStatusText = "";
7582
var progress = new Progress<DownloadProgress>(p =>

0 commit comments

Comments
 (0)