Main logic: so far the player info (title, subtitle, image link) was solely filled based on the nowplaying API answer from the streaming server (Azuracast); this new feature introduces a fallback mechanism if such info is not available. Specifically, in case of stream relays there is no image link and the title and subtitle fields depend on the streamer. We use the combination of the playlist (empty) and is_live (false) fields to detect such a case and we fallback to compute the show based on the current CET time and arcsi.
Fix some CET issues (CET display and calculating CET times to be in sunch with arcsi schedules);
Start using store (Vue's "global variable" concept) for sharing/reusing data across components (most notably in this PR: radio player component computes show info such as title, subtitle which is reused by, e.g., schedule on home page).
Main changes:
nowplaying
API answer from the streaming server (Azuracast); this new feature introduces a fallback mechanism if such info is not available. Specifically, in case of stream relays there is no image link and the title and subtitle fields depend on the streamer. We use the combination of theplaylist
(empty) andis_live
(false) fields to detect such a case and we fallback to compute the show based on the current CET time and arcsi.Fixed issues:
Validation:
Known issues (to be done later) and disclaimer:
Please review until Monday if you can and sorry for the very short notice! It got to be a more complicated feature than I expected.