Skip to content

Fix metadata icon data path handling#66

Merged
zehnm merged 8 commits into
mainfrom
fix/metadata-handling
Apr 26, 2025
Merged

Fix metadata icon data path handling#66
zehnm merged 8 commits into
mainfrom
fix/metadata-handling

Conversation

@zehnm
Copy link
Copy Markdown
Contributor

@zehnm zehnm commented Apr 24, 2025

  • Increase app icon size to 240x240 for better image quality and still keeping a small size for transferring as base64 data in WebSocket messages.

  • Only store the image filename instead of the full file path.
    This allows for a future migration of the downloaded metadata. The UC_DATA_HOME location cannot be considered static. Furthermore, using relative paths only worked if the UC_DATA_HOME was the working directory. This is not the case on the Remote device.

  • Store the new homescreen icon in UC_CONFIG_HOME.
    The data directory can be deleted at any time. It also makes it easier to add a user option to clear the image cache.

  • Resize homescreen icon to better fit the device screen and reduce runtime overhead.
    Furthermore, the image is only loaded and converted to base64 once, then reused.

  • Add missing French & German translations in setup flow.

  • Label Cast & Google Play metadata as preview features in setup flow configuration.

  • Filter out all base64 encoded images in log messages to reduce runtime overhead and log flooding.

  • Refactor project structure: rename intg-androidtv to src, and add initial unit tests.

zehnm added 2 commits April 25, 2025 18:08
Only store the image filename instead of the full file path.
This allows for a future migration of the downloaded metadata. The
`UC_DATA_HOME` location cannot be considered static.
Furthermore, using relative paths only worked if the `UC_DATA_HOME` was
the working directory. This is not the case on the Remote device.
Add missing French & German translations
@zehnm zehnm force-pushed the fix/metadata-handling branch from 62b6acb to fb633a6 Compare April 25, 2025 16:09
zehnm added 3 commits April 26, 2025 12:25
The cache file is automatically created and doesn't need to exist at
driver startup.
This allows an easier installation on the Remote device and simply
wiping the data cache directory in the future to remove the cache.
Add initial unit tests and rename the intg-androidtv source directory
to src. This was required to make the unit tests work and also follows
common project setup practices.
@zehnm zehnm marked this pull request as ready for review April 26, 2025 14:54
zehnm added 3 commits April 26, 2025 17:12
Most app icons look pretty good with this resolution while keeping a
small size. Since the app icons are encoded as base64 data and sent over
WebSockets, it's important to keep the size as small as possible.

Once we allow file sharing from an integration, the UI can directly
access the files and the image size can be increased up to 480x480.
@zehnm
Copy link
Copy Markdown
Contributor Author

zehnm commented Apr 26, 2025

Tested on the device: image data handling works great with the asyncio rewrite from PR #67.
Ready for a release and further tests.

There are some app image glitches with Cast artwork (seen with Stremio): Cast artwork & app metadata is toggled a few times until the Cast artwork remains.
This will be investigated and fixed later.

@zehnm zehnm merged commit 3accafb into main Apr 26, 2025
6 checks passed
@zehnm zehnm deleted the fix/metadata-handling branch April 26, 2025 15:42
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.

1 participant