Prepare Linux deployment with yt-dlp and persistent downloads
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
namespace TuneRipper.Api.Configuration;
|
||||
|
||||
public sealed class YtDlpOptions
|
||||
{
|
||||
public const string SectionName = "YtDlp";
|
||||
|
||||
public string ExecutablePath { get; set; } = OperatingSystem.IsWindows()
|
||||
? "yt-dlp.exe"
|
||||
: "yt-dlp";
|
||||
|
||||
public string FfmpegExecutablePath { get; set; } = "ffmpeg";
|
||||
public int ProcessTimeoutSeconds { get; set; } = 900;
|
||||
}
|
||||
|
||||
public sealed class StorageOptions
|
||||
{
|
||||
public const string SectionName = "Storage";
|
||||
|
||||
public string DownloadsPath { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user