Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: Add option to hide info containing potential spoilers #225

Open
2 of 3 tasks
TnTora opened this issue Feb 3, 2025 · 0 comments
Open
2 of 3 tasks
Labels
request New feature or request
Milestone

Comments

@TnTora
Copy link

TnTora commented Feb 3, 2025

Checklist

  • I checked that this feature has not been requested before
  • I checked that this feature is not in the "Not planned" list
  • This feature will benefit the majority of users

Problem Description / Use Case

When watching a show, especially one that has already finished airing, it's easy to get accidentally spoiled by thumbnails, titles or descriptions from unwatched episodes. Adding an option to hide or blur those elements would easily prevent the problem.

Proposed Solution

I actually made a simple implementation for my personal use in a fork and thought I'd share in case it might be useful.

I added the following options in the settings under the Media tab

Image
  • No Episode is the current behaviour
  • All Unwatched Episodes hides info for every episode whose number is greater than the current progress, this includes the carousel in the "continue watching" section
  • Unwatched Episodes Except Next One same as above but let you see info for one extra episode, this makes it so the carousel keeps working as it currently does

Here is an example of the results you get with the settings in the image above

Image

I tried removing title and description entirely but I wasn't a fan of the aesthetics so I went with the blur option.

The implementation I'm testing is based on adding an attribute hidePotentialSpoilers to EpisodeCard and EpisodeGridItem to which is passed the following formula (or some variant of it depending on the page passing the argument)

hidePotentialSpoilers={progress < episode?.progressNumber - +ts.hidePotentialSpoilersScope}

where ts.hidePotentialSpoilersScope is the value from the Field.RadioCards above with the following options

[
  {
     label: "No Episode",
     value: "Infinity",
   },
   {
     label: "All Unwatched Episodes",
     value: "0",
   },
   {
     label: "Unwatched Episodes Except Next One",
     value: "1",
    },
]

Using this attribute alongside the 3 switches in the settings I conditionally added various blur- classes to the respective fields.

I haven't had much time to test it, especially outside of torrent-streaming, so I might have missed something but it should at least be enough as a proof of concept.

@5rahim 5rahim added the request New feature or request label Feb 3, 2025
@5rahim 5rahim moved this to Backlog in Seanime Roadmap Feb 3, 2025
@5rahim 5rahim added this to the v2.8.0 milestone Feb 3, 2025
@5rahim 5rahim moved this from Backlog to Planned in Seanime Roadmap Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request New feature or request
Projects
Status: Planned
Development

No branches or pull requests

2 participants