60secondsassassin patch 1 - #1183
Conversation
fix: timing issue for SetViewMode
Add a comment to clarify the purpose of setting the ViewMode.
Implement robust path translation for icons and thumbnails.
| for i, item in enumerate(data["items"]): | ||
|
|
||
| # --- ROBUST PATH TRANSLATION --- | ||
| if item.get("icon") and "resources" in item["icon"]: |
There was a problem hiding this comment.
@60secondsassassin Why do you re-set icon and thumbnail?
|
@60secondsassassin It would be great to resolve and merge this PR. |
Hi @elgatito , in a multi‑platform client/server setup (for example: a Linux server with Android TV and/or Apple TV clients), Elementum on client devices currently uses the remote server’s addon path to load navigation icons and thumbnails. This commit updates the behavior so that each client resolves its own local addon path, ensuring that icons and thumbnails load properly on every device, regardless of the platform. |
Fix: Inconsistent ViewMode application + local icons when in remote server mode
Description
This PR fixes the issue where Elementum fails to apply the configured View ID (Posters, List, etc.) when navigating through directories.
The fix involves:
xbmcplugin.endOfDirectoryis called before attempting to set the view.SetViewModecommand is sent.Related Issue
Fixes inconsistent UI behavior on Kodi 20/21, especially on low-end hardware where the UI thread is slower than the Python execution.
Motivation and Context
Currently, the
Container.SetViewModecommand often fires while the directory is still "loading," causing Kodi to ignore it and fall back to the skin's default view. By finalizing the directory first and adding a slight delay, we ensure the command is received when the UI is ready to process it.How Has This Been Tested?
Screenshots (if appropriate):
(Optionnel : tu peux ajouter ici une capture d'écran de l'affichage correct des Posters)
Types of changes
Checklist: