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: Support listing/loading profiles #1155

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

wutschel
Copy link
Collaborator

Description

Closes #38.

This PR implements support for user profiles. Profiles can be reached via the Settings menu. The available profiles (incl. thumbnails) are listed, and the current active profile is highlighted. When selecting another profile it is attempted to load it.

Screenshots:
Bildschirmfoto-2024-09-30-um-12-15-10

Summary for release notes

Feature: Support listing/loading profiles

@wutschel
Copy link
Collaborator Author

Testing shows some more problems which are not completely resolved:

  1. When loading a new profile, TCP is ended and not reconnected. A forced reconnect resolves this.
  2. Profiles.LoadProfile returns before Kodi finished loading the profile. Forcing reconnect here resolves the lost TCP connection, but the new profile might still not be changed.
  3. Profile is only read at connect. Any profile change via Kodi UI or via another remote is not recognized. Only polling would suffice.

@wutschel
Copy link
Collaborator Author

wutschel commented Oct 1, 2024

There are two paths possible

Letting the app's cached library views depend on user profile

Needs polling of user profile and has several implications to update the current view in case the user profile was changed. E.g. this would require reloading of the movie list view (and any other cached view) if the user profile changed.

Ignore the user profile in the app's cache

This is more in line with current behaviour. Cache does not take the user profile into account. If the user changes the profile, a manual pull-to-sync might be required to update the views to the new access rights. In this case changing the user profile is treated like a Kodi setting which the app can read and set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: Switch xbmc user
1 participant