fix: use IPv4 for YouTube extraction
YouTube returned an anti-bot challenge on the default network route. The same installed extractor succeeds over IPv4 without cookies. Apply the route choice to shared search, feed and metadata extraction.
This commit is contained in:
+7
-1
@@ -824,7 +824,13 @@ fn isolated_command(program: &OsStr) -> Command {
|
||||
|
||||
fn extractor() -> Command {
|
||||
let mut command = isolated_command(OsStr::new("yt-dlp"));
|
||||
command.args(["--ignore-config", "--no-warnings", "--socket-timeout", "15"]);
|
||||
command.args([
|
||||
"--ignore-config",
|
||||
"--force-ipv4",
|
||||
"--no-warnings",
|
||||
"--socket-timeout",
|
||||
"15",
|
||||
]);
|
||||
command
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user