Repository navigation
fix(library): play ready to watch movies in the app - #74
Conversation
Movies on the Ready to Watch shelf (and in the available list) had no playItemId, so their Play button opened the details view and also followed the card's Jellyfin link, which the Foreseerr app opens in the browser. Those rows now carry the movie's own item id, and a card with nothing to play only opens the details view. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Description
In the Foreseerr app, pressing Play on a movie in the Library's Ready to Watch shelf opened Jellyfin's web page in the browser the first time, and only the second Play (from the details view) used the app's player.
Cause: the Ready to Watch rows (and the available-library rows) are built from Foreseerr's requests/media tables and never set
playItemIdfor movies. With no id, the card's Play opened the details view but didn't cancel the click, so the card's Jellyfin link was followed too, and the app sends links that leave Foreseerr to the browser.forgotten_requestsandavailablenow carry their own Jellyfin item id asplayItemId(series still get an episode inenrich).How Has This Been Tested?
/api/v1/library/watch-nowreturnedplayItemId: nullfor every movie on the Ready to Watch shelf while browse and the item endpoint had it.cargo fmt --check,cargo test --bin foreseerr library(19 passed), eslint, prettier andtsc --noEmit.Checklist:
bun run buildbun run i18n:extract(no new strings)🤖 Generated with Claude Code
Summary by CodeRabbit