diff --git a/lib/services/plex_client.dart b/lib/services/plex_client.dart index bd2115a7..e6f82b79 100644 --- a/lib/services/plex_client.dart +++ b/lib/services/plex_client.dart @@ -2350,13 +2350,15 @@ class PlexClient { final nested = op['Metadata']; if (nested is Map) { metadataJson = nested; + } else if (nested is List && nested.isNotEmpty) { + metadataJson = nested.first as Map; } } } metadataJson ??= (container['Metadata'] as List?)?.firstOrNull as Map?; if (metadataJson == null) { - appLogger.w('Tune channel: no metadata in response'); + appLogger.w('Tune channel: no metadata in response (keys: ${container.keys.toList()}, subscriptions: ${subscriptions?.length}, firstSub: ${subscriptions?.firstOrNull})'); return null; }