Skip to content

Commit

Permalink
Add log warning for unsupported Collection media type for trailer fetch
Browse files Browse the repository at this point in the history
Handle the Collection media type in SearchResultViewModel with a warning log indicating it is not supported for trailers. This prevents unhandled cases and improves logging clarity.
  • Loading branch information
DineshSolanki committed Jul 29, 2024
1 parent 68a3846 commit 38b85d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions FoliCon/ViewModels/SearchResultViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,9 @@ private async void PerformSelectionChanged()
case MediaTypes.Mtv:
await HandleMtvMediaType(itemId);
break;
case MediaTypes.Collection:
Logger.Warn("Collection media type not supported for trailer");
break;
default:
Logger.Warn("Unknown media type {MediaType}", SearchResult.MediaType);
break;
Expand Down

0 comments on commit 38b85d7

Please sign in to comment.