Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Display album cover for ROCKRADIO.com and JAZZRADIO.com plugin #1286

Open
eugene-chekan opened this issue Jan 8, 2025 · 4 comments

Comments

@eugene-chekan
Copy link

Hi there! Thank you for adding the plugins.
They work perfectly except for the album cover display of the currently playing song.
I think the info is available in the API response to the radio stream as the android application does display the album cover.

@michaelherger
Copy link
Member

Would it even show metadata (track title, artist)? The implementation admittedly is rather basic.

@eugene-chekan
Copy link
Author

This is how it looks like
image
There is at least a song title and the artist name. So I suppose this info has come with the response.
I could probably sniff the traffic to inspect the response in details, but thought you'll know it better.

@eugene-chekan
Copy link
Author

So. Here's a sample response I was able to see. It does contain something that resembles the url to image cdn server.

{
    "method": "slim.request",
    "result": {
        "player_name": "MoodePi",
        "player_connected": 1,
        "player_ip": "192.168.100.10:33028",
        "library_id": "0b852a70",
        "library_name": "Hide lossy duplicates if lossless track is available",
        "power": 1,
        "signalstrength": 0,
        "mode": "play",
        "remote": 1,
        "current_title": "Heavy Metal - ROCKRADIO.COM Premium",
        "time": 4776.27613495636,
        "rate": 1,
        "mixer volume": 85,
        "playlist repeat": 0,
        "playlist shuffle": 0,
        "playlist mode": "off",
        "seq_no": 0,
        "playlist_cur_index": "0",
        "playlist_timestamp": 1736370374.72141,
        "playlist_tracks": 1,
        "randomplay": 0,
        "digital_volume_control": 0,
        "alarm_state": "none",
        "alarm_next": 0,
        "alarm_version": 2,
        "alarm_snooze_seconds": 540,
        "alarm_timeout_seconds": 3600,
        "remoteMeta": {
            "id": "-367934804000",
            "title": "My Apocalypse",
            "coverid": "-367934804000",
            "duration": "0",
            "type": "MP3 Radio",
            "bitrate": "320kbps CBR",
            "url": "http://prem4.rockradio.com/heavymetal?99682a3e32ce72********",
            "year": "0",
            "artist": "Arch Enemy",
            "artwork_url": "/imageproxy/https%3A%2F%2Fcdn-images.audioaddict.com%2F5%2F9%2Fd%2F7%2F3%2F5%2F59d73538e3c9040ae2216f1a3f0bb4ca.png%3Fsize%3D1000x1000%26quality%3D90/image.png",
            "remote_title": "Heavy Metal",
            "live_edge": "0"
        },
        "playlist_loop": [
            {
                "artwork_url": "/imageproxy/https%3A%2F%2Fcdn-images.audioaddict.com%2F5%2F9%2Fd%2F7%2F3%2F5%2F59d73538e3c9040ae2216f1a3f0bb4ca.png%3Fsize%3D1000x1000%26quality%3D90/image.png",
                "url": "http://prem4.rockradio.com/heavymetal?99682a3e32ce72********",
                "remote_title": "Heavy Metal",
                "id": "-367934804000",
                "coverid": "-367934804000",
                "duration": "0",
                "live_edge": "0",
                "title": "My Apocalypse",
                "bitrate": "320kbps CBR",
                "year": "0",
                "artist": "Arch Enemy",
                "playlist index": 0,
                "type": "MP3 Radio"
            }
        ]
    },
    "id": 0,
    "params": [
        "d8:3a:dd:31:d8:d6",
        [
            "status",
            "-",
            1,
            "tags:cdegilopqrstuybhz1AABEGIKNPSTVk",
            "alarmData:1"
        ]
    ]
}

@michaelherger
Copy link
Member

Unfortunately that is just the station's artwork, not the track's. I'll have to see whether they have any kind of API to get to that information.

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

No branches or pull requests

2 participants