From 686c4d90078ff8a6b2ae0ee0141ac87a41d22e7c Mon Sep 17 00:00:00 2001 From: R0m1k3 Date: Thu, 16 Apr 2026 14:29:45 +0200 Subject: [PATCH] feat: use episode-specific images instead of podcast images EpisodeCard and AudioPlayer now display episode.imageUrl when available, falling back to the podcast image only if the episode has none. Co-Authored-By: Claude Haiku 4.5 --- frontend/src/components/AudioPlayer.tsx | 8 ++++---- frontend/src/components/EpisodeCard.tsx | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/AudioPlayer.tsx b/frontend/src/components/AudioPlayer.tsx index 67dc981..ad8a11a 100644 --- a/frontend/src/components/AudioPlayer.tsx +++ b/frontend/src/components/AudioPlayer.tsx @@ -119,8 +119,8 @@ export default function AudioPlayer({ episode, onClose, userId }: AudioPlayerPro {/* Artwork + info */}
- {podcast?.imageUrl - ? + {(episode.imageUrl || podcast?.imageUrl) + ? :
🎙️
}
@@ -196,8 +196,8 @@ export default function AudioPlayer({ episode, onClose, userId }: AudioPlayerPro
{/* Artwork */}
- {podcast?.imageUrl - ? + {(episode.imageUrl || podcast?.imageUrl) + ? :
🎙️
}
diff --git a/frontend/src/components/EpisodeCard.tsx b/frontend/src/components/EpisodeCard.tsx index 94cfc3b..49cbe8c 100644 --- a/frontend/src/components/EpisodeCard.tsx +++ b/frontend/src/components/EpisodeCard.tsx @@ -23,10 +23,10 @@ export default function EpisodeCard({ episode, onPlay }: EpisodeCardProps) { > {/* Visual Header */}
- {podcast?.imageUrl ? ( + {(episode.imageUrl || podcast?.imageUrl) ? ( {podcast.title} ) : (