mirror of
https://github.com/lox-audioserver/lox-audioserver.git
synced 2026-04-25 22:35:53 +03:00
[PR #116] [MERGED] TuneIn enhancements/fixes #171
Labels
No labels
bug
enhancement
pull-request
released
released on @beta
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lox-audioserver#171
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/lox-audioserver/lox-audioserver/pull/116
Author: @martinsefcik
Created: 1/12/2026
Status: ✅ Merged
Merged: 1/13/2026
Merged by: @rudyberends
Base:
4.x-branch← Head:tunein-enhancements📝 Commits (3)
a472c14fix(tunein): ignore items with key='unavailable'z675fecdfix(tunein): extract radio name when item's text contains frequency or genref869862fix(tunein): use square cover image (replace trailingqwithd)📊 Changes
1 file changed (+18 additions, -3 deletions)
View changed files
📝
src/modules/content/providers/tunein/tuneinProvider.ts(+18 -3)📄 Description
Ignore unavailable TuneIn items
I added logic to ignore a specific type of TuneIn item retrieved from the API. If an item contains the
keyfield with the valueunavailable, it is not imported because such items either have no stream or their stream only contains a message stating that the radio stream is unavailable.Example of such an item:
Fix cover image cropping
Not all cover images retrieved from the API are square, which causes them to be cropped in the Loxone app and look distorted.
It appears that if the last character (q) in the file name is replaced with d, a resized 300×300 pixel cover image is returned. While this is not a perfect solution, it provides a reasonable workaround until any server-side image processing is implemented in the future (if needed).
Before fix:

After fix:

Trim frequency and genre from radio station name
The TuneIn API returns the radio name along with frequency and genre if available. However, based on screenshots and presentation videos from the Loxone app, it looks like only the radio name itself is displayed (without frequency or genre).
Additionally, the genre is translated according to the Accept-Language header in the API call. Currently,
nl-NLis used, so the genre appears in Dutch and if the genre is kept in the radio name, it may be better to make the language configurable.In this PR, I chose to trim the genre and frequency from the radio station name to match the Loxone app behavior.
Loxone app presentation video (radio name only):


Even though the TuneIn API item contains frequency and genre:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.