mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-10 07:58:39 -05:00
fix: gracefully skip malformed playlists instead of failing all endpoints
This commit is contained in:
@@ -188,7 +188,15 @@ public class SquidWTFMetadataService : IMusicMetadataService
|
||||
{
|
||||
foreach(var playlist in items.EnumerateArray())
|
||||
{
|
||||
playlists.Add(ParseTidalPlaylist(playlist));
|
||||
try
|
||||
{
|
||||
playlists.Add(ParseTidalPlaylist(playlist));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogDebug(ex, "Failed to parse playlist, skipping");
|
||||
// Skip this playlist and continue with others
|
||||
}
|
||||
}
|
||||
}
|
||||
return playlists;
|
||||
|
||||
Reference in New Issue
Block a user