Skip to content

Comments

fix: hidden content page and hide button improvements#407

Open
4eh5xitv6787h645ebv wants to merge 3 commits inton00bcodr:mainfrom
4eh5xitv6787h645ebv:fix/hidden-content-improvements
Open

fix: hidden content page and hide button improvements#407
4eh5xitv6787h645ebv wants to merge 3 commits inton00bcodr:mainfrom
4eh5xitv6787h645ebv:fix/hidden-content-improvements

Conversation

@4eh5xitv6787h645ebv
Copy link
Contributor

Summary

  • Fix hide button on chapter/scene cards: The hide button was incorrectly appearing on chapter/scene cards in movie and TV show detail pages. Added exclusion check matching the pattern already used by tag files (#itemDetailPage .chapterCardImageContainer).
  • Fall back to Jellyseerr for removed items: When a hidden item no longer exists in Jellyfin (e.g. movie was deleted from library), clicking the card on the Hidden Content page now opens the Jellyseerr modal instead of navigating to a broken detail page.
  • Fetch poster from Jellyseerr API: When hidden items lack a stored posterPath (common when hidden via native Jellyfin UI), the poster is now fetched from the Jellyseerr API (fetchMovieDetails/fetchTvShowDetails) so removed items still display their poster on the Hidden Content page.

Files Changed

  • js/enhanced/hidden-content.jsaddLibraryHideButtons() chapter exclusion, createItemCard() Jellyseerr fallback
  • js/enhanced/hidden-content-page.jscreateGroupPoster() and createGroupCard() Jellyseerr fallback

Implementation Notes

This PR was developed with AI assistance (Claude). All changes have been reviewed and tested on a live Jellyfin 10.11 instance.

Test plan

  • Verified hide button no longer appears on chapter/scene cards in movie detail pages
  • Verified hide button no longer appears on chapter/scene cards in TV show detail pages
  • Verified clicking a removed movie on Hidden Content page opens Jellyseerr modal
  • Verified poster loads from Jellyseerr API for removed items without stored posterPath
  • Verified existing hidden items with Jellyfin IDs still work normally
  • No console errors

🤖 Generated with Claude Code

The broad card selector in addLibraryHideButtons() matched chapter/scene
cards on movie and TV show detail pages. Added a check to skip cards
inside #itemDetailPage that contain .chapterCardImageContainer, matching
the exclusion pattern already used by the tag files.
…yfin

When a hidden item no longer exists in Jellyfin (e.g. movie was deleted),
the card on the Hidden Content page would show no poster and link to a
broken detail page. Now when the Jellyfin poster request fails:

- Falls back to the TMDB poster image if a posterPath was stored
- Switches click handlers to open the Jellyseerr modal instead of
  navigating to the dead Jellyfin detail page

Applied to both movie cards (createItemCard in hidden-content.js) and
series group cards (createGroupPoster/createGroupCard in
hidden-content-page.js).
…Path

When items are hidden via native Jellyfin cards, posterPath is often not
stored. If the item is later removed from Jellyfin, the poster fails to
load and the card appears blank even when a tmdbId is available.

- When Jellyfin poster 404s and posterPath is empty, fetch poster from
  Jellyseerr API (fetchMovieDetails/fetchTvShowDetails) using the tmdbId
- Applied to both createItemCard (hidden-content.js) and
  createGroupPoster (hidden-content-page.js)
- Falls back gracefully: stored posterPath → Jellyseerr API → hide image

This PR was developed with AI assistance (Claude). All changes have been
reviewed and tested on a live Jellyfin 10.11 instance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant