fix: select feed thumbnail from most recently published episode #81
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
in progress
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
joezombie/castr!81
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/feed-thumbnail-uses-latest-publish-date"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Root Cause
The thumbnail fallback was selecting the wrong episode.
DisplayOrdermaps to the YouTube playlist position, and for playlists ordered newest-first (the common case), low indices = recent episodes. The previous code usedLastOrDefaulton an ascendingDisplayOrdersort, which picked the episode with the highest playlist index — the oldest episode.Fix
Order by
PublishDatedescending before selecting, so the most recently uploaded episode's thumbnail is always used — independent of playlist ordering. Applied to both the thumbnail URL and embedded-art fallback paths.Test plan
DisplayOrderbut higherPublishDateshould win)XDocumentPodcastFeedServiceTestspass🤖 Generated with Claude Code