namespace TV_Player.MAUI
{
///
/// Configuration settings for playlist and EPG sources
///
public class PlaylistSettings
{
///
/// URL to the M3U playlist file
///
public string M3UUrl { get; set; }
///
/// URL to the EPG (Electronic Program Guide) XML file
/// Can be overridden by x-tvg-url in M3U file
///
public string EpgUrl { get; set; }
///
/// Connection timeout in seconds
///
public int TimeoutSeconds { get; set; } = 30;
///
/// Whether to cache EPG data locally
///
public bool CacheEpgLocally { get; set; } = true;
///
/// Cache validity period in days
///
public int CacheValidityDays { get; set; } = 3;
///
/// Load default settings
///
public static PlaylistSettings Default => new PlaylistSettings
{
M3UUrl = "http://pl.da-tv.vip/a71e77fa/835b3216/tv.m3u",
EpgUrl = string.Empty // Will be extracted from M3U file
};
}
}