This commit is contained in:
Demetria Lovato 2021-06-23 20:00:49 -07:00
parent f7397e817f
commit 80334a6484
1 changed files with 7 additions and 7 deletions

View File

@ -232,43 +232,43 @@ namespace youtube_downloader
break;
}
return 0;
return 1;
}
private static int RunMoveQueue(MoveQueue opts)
{
Server.Functions.Downloader.ModQueue(opts.MoveTo, opts.MoveFrom);
return 0;
return 1;
}
private static int RunDownloadUser(DownloadUser opts)
{
Server.Functions.Downloader.DownloadUser(opts.Id, opts.Format);
return 0;
return 1;
}
private static int RunExitApp(ExitApp opts)
{
Environment.Exit(0);
return 0;
return 1;
}
private static int RunDownloadVideo(DownloadVideo opts)
{
Server.Functions.Downloader.DownloadVideo(opts.Id, opts.Format);
return 0;
return 1;
}
private static int RunDownloadPlaylist(DownloadPlaylist opts)
{
Server.Functions.Downloader.DownloadPlaylist(opts.Id, opts.Format);
return 0;
return 1;
}
private static int RunDownloadChannel(DownloadChannel opts)
{
Server.Functions.Downloader.DownloadChannel(opts.Id, opts.Format);
return 0;
return 1;
}
}
}