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:
@@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user