Enhance error handling and logging in M3U and XML downloading processes; implement proper application shutdown in MainViewModel; introduce PlaylistSettings for configurable URLs and timeout settings.

This commit is contained in:
Vladimir
2026-03-22 09:14:39 +02:00
parent 59d0ed1ab5
commit a6ec011e79
9 changed files with 270 additions and 181 deletions
+9 -3
View File
@@ -38,11 +38,17 @@ namespace TV_Player.MAUI
{
try
{
URLSource = _currentProgram.Url;
if (string.IsNullOrWhiteSpace(url))
{
System.Diagnostics.Debug.WriteLine("Invalid URL for playback");
return;
}
URLSource = url;
}
catch
catch (Exception ex)
{
// Handle exceptions
System.Diagnostics.Debug.WriteLine($"Error playing M3U8: {ex.Message}");
}
}
}