Compare commits
No commits in common. "5ba7161063db1af5a1d69b238dad1e456be7e0a8" and "15b6e72f51c8d7496f944fcec482e066d3557daf" have entirely different histories.
5ba7161063
...
15b6e72f51
@ -21,18 +21,10 @@ namespace YTExtractor.Services.Handlers
|
|||||||
{
|
{
|
||||||
_logger.LogInformation("Getting video info using yt-dlp for {Url}", url);
|
_logger.LogInformation("Getting video info using yt-dlp for {Url}", url);
|
||||||
|
|
||||||
var arguments = $"--dump-json " +
|
|
||||||
$"--user-agent \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36\" " +
|
|
||||||
$"--add-header \"Accept-Language:pt-BR,pt;q=0.9,en;q=0.8\" " +
|
|
||||||
$"--add-header \"Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\" " +
|
|
||||||
$"--no-check-certificate " +
|
|
||||||
$"{url}";
|
|
||||||
|
|
||||||
var startInfo = new ProcessStartInfo
|
var startInfo = new ProcessStartInfo
|
||||||
{
|
{
|
||||||
FileName = "yt-dlp",
|
FileName = "yt-dlp",
|
||||||
//Arguments = $"--dump-json {url}",
|
Arguments = $"--dump-json {url}",
|
||||||
Arguments = arguments,
|
|
||||||
RedirectStandardOutput = true,
|
RedirectStandardOutput = true,
|
||||||
UseShellExecute = false,
|
UseShellExecute = false,
|
||||||
CreateNoWindow = true,
|
CreateNoWindow = true,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user