Fix BBC Launcher metadata flapping on UK channels#85
Conversation
|
Hi @mase1981, Sorry for the late response. Minor health issues haven taken some time. I am wondering: If a program on a channel is ended, will this cause the linear meta data to stay the same? Or is it updated accordingly when a new program starts. Please note that in my latest additions to this library, i've added some extra program information. Probably you can use that for the good :) |
|
Hey @Sholofly , i do hope you feel better now, health is more important !! To answer your question: The issue i addressed in my integeation was specifically BBC channels on Virgin Media, where the STB temporarily reports degraded metadata (BBC Launcher/No Channel/appstore image) during transitions. I built a degradation handler that caches good metadata and uses it as a bridge until valid data arrives. And yeah, for sure, I'd love to use the extra program information you added! I live in the US and i dont own any horizon boxes, so i do this completely blind and rely on users to provide logs and after lot of trial and error i releasse a new update, especially when you update too :) |
When BBC channels display their launcher overlay, the set-top box briefly reports app state with generic "BBC Launcher" metadata, overwriting valid program information. This causes artwork and channel info to flicker. This fix: - Caches valid linear metadata after successful linear/replay processing - Detects launcher app overlays (name contains "launcher" or appstore logo) - Restores cached metadata instead of showing generic launcher info - Clears cache on standby/offline to prevent stale data Fixes issue where BBC channels show correct info for 2-3 seconds then revert to "BBC Launcher" with no artwork.
e17a7c2 to
4ff9c49
Compare
|
@Sholofly , done. |
Summary
When BBC channels display their launcher overlay, the set-top box briefly reports app state with generic "BBC Launcher" metadata, overwriting valid program information. This causes artwork and channel info to flicker and show generic launcher screen instead of actual program details.
Problem observed:
Solution
Changes
lghorizon_models.py:_last_good_linear_metadatadict toLGHorizonDeviceStatecache_linear_metadata()methodrestore_linear_metadata()methodclear_linear_metadata_cache()methodis_launcher_app()detection methodlghorizon_device_state_processor.py:_process_apps_stateand restore cached dataTesting
Tested with Virgin Media UK BBC channels. The integration now maintains correct program artwork and metadata when BBC Launcher overlay briefly appears.