播放器: 剧集无logo时从剧集(series)获取logo

- PlayerDestination加载剧集后检查是否有logo
- 若剧集无logo,额外请求series item获取其logo tag
- 合并到剧集的imageTags中,确保播放器显示正确的艺术文字

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
beyondandClaude Opus 5 committed 2026-09-06 18:21:13 +08:00
1 parent ea6a751e72
commit fdf14f7dd2
1 file changed
+12
@@ -438,6 +438,18 @@ private fun PlayerDestination(
} catch (_: Exception) {
null
}
// If episode has no logo, fetch the series item to get its logo
val currentSeriesId = seriesId ?: item?.seriesId
if (item?.logoImageTag == null && !currentSeriesId.isNullOrBlank() && server != null && server.apiKey.isNotBlank()) {
try {
val seriesItem = EmbyRepository.getItem(server, currentSeriesId)
if (seriesItem?.logoImageTag != null) {
item = item?.copy(
imageTags = (item?.imageTags ?: emptyMap()) + mapOf("Logo" to seriesItem.logoImageTag!!)
)
}
} catch (_: Exception) { /* ignore */ }
}
itemLoading = false
}