Skip to content

feat(TV 2 Play): add activity - #11180

Open
NoOneNook wants to merge 4 commits into
PreMiD:mainfrom
NoOneNook:feat/tv2-play
Open

feat(TV 2 Play): add activity#11180
NoOneNook wants to merge 4 commits into
PreMiD:mainfrom
NoOneNook:feat/tv2-play

Conversation

@NoOneNook

@NoOneNook NoOneNook commented Sep 8, 2026

Copy link
Copy Markdown

Description

Adds a new TV 2 Play activity that shows what the user is watching on TV 2 Play, including series/movie information, season/episode details, playback state, artwork, and timestamps when available.

Changes in the latest update

  • Added Norwegian / English language selection for the full presence output.
  • Added Privacy Mode. While watching, it hides the exact title and instead shows a generic media type such as series, movie, or live TV. Normal browsing presence is not overridden by Privacy Mode.
  • Muted autoplay previews on series/movie detail pages are ignored, so simply opening a title page does not incorrectly appear as active playback.
  • Short previews with audible audio are detected as trailers.
  • Hidden/detached source-backed video elements are ignored after SPA navigation.
  • Episode-title detection now accepts multiple marker formats such as S1E2, S1 E2, Sesong/Season N, and Episode/Ep. N.
  • Live detection is restricted to the actual /direkte-tv route.

Language and Privacy Mode settings

Users can switch the full activity output between Norwegian and English and enable Privacy Mode independently.

TV 2 Play language and privacy settings

Muted autoplay previews are ignored

TV 2 Play can automatically play a muted preview on series/movie detail pages. These previews are now ignored so the activity remains in the normal browsing state.

TV 2 Play browsing while muted autoplay preview is ignored

Audible trailers are detected

If a short preview is actually playing with audio, it is treated as a trailer rather than regular movie/episode playback.

TV 2 Play trailer detection

Privacy Mode while watching

Privacy Mode hides the exact title and detailed playback information while still indicating the general type of content being watched.

TV 2 Play Privacy Mode

Acknowledgements

Validation

  • npx eslint "websites/T/TV 2 Play" --no-cache passes
  • npx pmd build "TV 2 Play" --validate passes
  • The updated activity was tested locally in PreMiD development mode
  • Browsing, regular playback, Privacy Mode, language switching, muted autoplay previews, and audible trailer detection were verified locally

Original screenshots

Playback

TV 2 Play playback presence

Browsing

TV 2 Play browsing presence

@dimerp

dimerp Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

🖼️ Activity asset preview

Behold, the gallery! Admission is free, but I do accept tips in the form of approvals.

TV 2 Play (websites/T/TV 2 Play) — creation

Preview Source URL
logo https://i.imgur.com/3dAnDrb.png
thumbnail https://i.imgur.com/yX01NEg.png

Beep boop — I refresh this comment on every push, so no need to scroll. 🤖

@NoOneNook
NoOneNook marked this pull request as ready for review September 8, 2026 01:11

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3accb2d25d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread websites/T/TV 2 Play/presence.ts Outdated
Comment thread websites/T/TV 2 Play/presence.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ac5eb24c29

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread websites/T/TV 2 Play/presence.ts
Comment thread websites/T/TV 2 Play/presence.ts Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant