change th code
This commit is contained in:
parent
54f9a14c9a
commit
6de81f7fcd
Binary file not shown.
|
@ -502,6 +502,7 @@ namespace youtube_downloader.Server.Functions
|
||||||
List<SavedMedia> media = new List<SavedMedia>();
|
List<SavedMedia> media = new List<SavedMedia>();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
||||||
await DL.ytc.Search.GetVideosAsync(text).ForEachAsync((e) => {
|
await DL.ytc.Search.GetVideosAsync(text).ForEachAsync((e) => {
|
||||||
foreach(var t in e.Thumbnails)
|
foreach(var t in e.Thumbnails)
|
||||||
{
|
{
|
||||||
|
|
|
@ -37,8 +37,8 @@ namespace youtube_downloader.Server.Functions
|
||||||
{
|
{
|
||||||
using (var p = new Process())
|
using (var p = new Process())
|
||||||
{
|
{
|
||||||
p.StartInfo.FileName = FFMPEG;
|
p.StartInfo.FileName = "/bin/bash";
|
||||||
p.StartInfo.Arguments = $"-i \"{tnail}\" \"{p2}\"";
|
p.StartInfo.Arguments = $"\"{Downloader.DL.GetPath(true, "thumbs")}\" \"{tnail}\" \"{p2}\"";
|
||||||
p.StartInfo.UseShellExecute = false;
|
p.StartInfo.UseShellExecute = false;
|
||||||
p.StartInfo.CreateNoWindow = true;
|
p.StartInfo.CreateNoWindow = true;
|
||||||
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
|
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue