feat(backend): YouTube Music search and playback resolution endpoints
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Musify.Infrastructure.Configuration
|
||||
{
|
||||
public class YouTubeConfiguration
|
||||
{
|
||||
public const string SectionName = "YouTube";
|
||||
|
||||
[Required]
|
||||
public string GeographicalLocation { get; set; } = "US";
|
||||
|
||||
[Range(60, 21600)]
|
||||
public int StreamUrlCacheSeconds { get; set; } = 1800;
|
||||
|
||||
[Range(60, 3600)]
|
||||
public int SearchContinuationCacheSeconds { get; set; } = 600;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Musify.Infrastructure.Configuration
|
||||
{
|
||||
public class YtDlpConfiguration
|
||||
{
|
||||
public const string SectionName = "YtDlp";
|
||||
|
||||
[Required]
|
||||
public string ExecutableName { get; set; } = "yt-dlp";
|
||||
|
||||
[Required]
|
||||
public string Format { get; set; } = "bestaudio";
|
||||
|
||||
public string AdditionalArguments { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public TimeSpan DownloadTimeout { get; set; } = TimeSpan.FromMinutes(5);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user