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

Respect server-side user preference for live TV default view #4537

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johnpc
Copy link

@johnpc johnpc commented Mar 22, 2025

Changes

This PR respects the server-side user preference for the "Default view" for the Live TV category.

This is configurable on the web client in your User Preferences -> Home -> Live TV -> Default Screen. See

Screenshot 2025-03-22 at 4 12 53 PM

For example, my preference is the TV Guide, so it skips directly to the TV Guide view:

Screen.Recording.2025-03-22.at.4.09.07.PM.mov

Worth noting not every view has an equivalent on android tv, so if it's an unsupported selection, it will show the same default screen that appears today.

If we like this idea of having the client respect the server preferences, I can do the same for other categories as well (like movies / shows / music / etc) but it's much cleaner to do one thing at a time.

Let me know what else you'd like me to include to get this over the finish line! Tbh for Live TV, none of the views other than Guide are useful for me at all, so this would save a lot of clicks!

Issues

Copy link
Member

@nielsvanvelzen nielsvanvelzen left a comment

Choose a reason for hiding this comment

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

As mentioned in chat. This cannot be merged unless we have UI to navigate to the different live TV screens (in a separate pull request).

In the current state of the PR if you default to the guide its impossible to open recordings for example.

Comment on lines +136 to +137
// Add coroutine scope for async operations
single { kotlinx.coroutines.MainScope() }
Copy link
Member

Choose a reason for hiding this comment

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

Coroutine scopes should never be added to dependency injection

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.

Have ATV client respect "default view" on a per user basis for LiveTV.
2 participants