#1604·librespot

Add DJ X support

Author: fegauthierCreated Sep 29, 2025Updated Aug 5, 2026
Labelsenhancement

Look for similar bugs

Please check if there's already an issue for your problem. If you've only a "me too" comment to make, consider if a :+1: reaction will suffice.

Description

When using librespot to listen music, it's working well except DJ X.

Version

version 0.7.1

How to reproduce

Steps to reproduce the behavior in librespot e.g.

  1. Launch Librespot normally
  2. Connect Spotify to the device
  3. If you play a song it's working, but not working if it's DJ X

Log

Sep 29 07:18:53 musiccast librespot[665]: [2025-09-29T11:18:53Z WARN  librespot_connect::state::context] couldn't load context info because: context is not available. type: Default
Sep 29 07:18:53 musiccast librespot[665]: [2025-09-29T11:18:53Z WARN  librespot_connect::state::context] couldn't load context info because: context is not available. type: Default
Sep 29 07:18:53 musiccast librespot[665]: [2025-09-29T11:18:53Z ERROR librespot_connect::state::context] context didn't have any tracks: Context {
Sep 29 07:18:53 musiccast librespot[665]:         uri: Some(
Sep 29 07:18:53 musiccast librespot[665]:             "spotify:playlist:37i9dQZF1EYkqdzj48dyYq",
Sep 29 07:18:53 musiccast librespot[665]:         ),
Sep 29 07:18:53 musiccast librespot[665]:         url: Some(
Sep 29 07:18:53 musiccast librespot[665]:             "context://spotify:playlist:37i9dQZF1EYkqdzj48dyYq",
Sep 29 07:18:53 musiccast librespot[665]:         ),
Sep 29 07:18:53 musiccast librespot[665]:         metadata: {
Sep 29 07:18:53 musiccast librespot[665]:             "home.card.background_color": "#FF0A59B8",
Sep 29 07:18:53 musiccast librespot[665]:             "add_context_load_reason": "true",
Sep 29 07:18:53 musiccast librespot[665]:             "context_description": "DJ",
Sep 29 07:18:53 musiccast librespot[665]:             "home.card.dj.transcript_text": "It's me, your DJ. Pulling together music just for you.",
Sep 29 07:18:53 musiccast librespot[665]:             "home.card.jellyfish_top_color": "#FF19E68C",
Sep 29 07:18:53 musiccast librespot[665]:             "lexicon_context_url": "hm://lexicon-session-provider/context-resolve/v2/session?contextUri=spotify:playlist:37i9dQZF1EYkqdzj48dyYq",
Sep 29 07:18:53 musiccast librespot[665]:             "home.card.tag_color": "#FF0D72EA",
Sep 29 07:18:53 musiccast librespot[665]:             "context_long_description": "DJ",
Sep 29 07:18:53 musiccast librespot[665]:             "context_owner": "spotify",
Sep 29 07:18:53 musiccast librespot[665]:             "home.card.jellyfish_mid_color": "#CB1ED7BC",
Sep 29 07:18:53 musiccast librespot[665]:             "home.card.jellyfish_animation": "https://lexicon-assets.spotifycdn.com/DJ_Lottie_tighter.json",
Sep 29 07:18:53 musiccast librespot[665]:             "format_list_type": "unknown",
Sep 29 07:18:53 musiccast librespot[665]:             "home.card.text_color": "#FFFFFFFF",
Sep 29 07:18:53 musiccast librespot[665]:             "home.card.dj.transcript_id": "familiarnostalgia8",
Sep 29 07:18:53 musiccast librespot[665]:             "home.card.jellyfish_bottom_color": "#7F1E95D7",
Sep 29 07:18:53 musiccast librespot[665]:             "lexicon_set_type": "your_dj",
Sep 29 07:18:53 musiccast librespot[665]:         },
Sep 29 07:18:53 musiccast librespot[665]:         restrictions: MessageField(
Sep 29 07:18:53 musiccast librespot[665]:             None,
Sep 29 07:18:53 musiccast librespot[665]:         ),
Sep 29 07:18:53 musiccast librespot[665]:         pages: [
Sep 29 07:18:53 musiccast librespot[665]:             ContextPage {
Sep 29 07:18:53 musiccast librespot[665]:                 page_url: None,
Sep 29 07:18:53 musiccast librespot[665]:                 next_page_url: None,
Sep 29 07:18:53 musiccast librespot[665]:                 metadata: {},
Sep 29 07:18:53 musiccast librespot[665]:                 tracks: [],
Sep 29 07:18:53 musiccast librespot[665]:                 loading: None,
Sep 29 07:18:53 musiccast librespot[665]:                 special_fields: SpecialFields {
Sep 29 07:18:53 musiccast librespot[665]:                     unknown_fields: UnknownFields {
Sep 29 07:18:53 musiccast librespot[665]:                         fields: None,
Sep 29 07:18:53 musiccast librespot[665]:                     },
Sep 29 07:18:53 musiccast librespot[665]:                     cached_size: CachedSize {
Sep 29 07:18:53 musiccast librespot[665]:                         size: 0,
Sep 29 07:18:53 musiccast librespot[665]:                     },
Sep 29 07:18:53 musiccast librespot[665]:                 },
Sep 29 07:18:53 musiccast librespot[665]:             },
Sep 29 07:18:53 musiccast librespot[665]:         ],
Sep 29 07:18:53 musiccast librespot[665]:         loading: None,
Sep 29 07:18:53 musiccast librespot[665]:         special_fields: SpecialFields {
Sep 29 07:18:53 musiccast librespot[665]:             unknown_fields: UnknownFields {
Sep 29 07:18:53 musiccast librespot[665]:                 fields: None,
Sep 29 07:18:53 musiccast librespot[665]:             },
Sep 29 07:18:53 musiccast librespot[665]:             cached_size: CachedSize {
Sep 29 07:18:53 musiccast librespot[665]:                 size: 0,
Sep 29 07:18:53 musiccast librespot[665]:             },
Sep 29 07:18:53 musiccast librespot[665]:         },
Sep 29 07:18:53 musiccast librespot[665]:     }
Sep 29 07:18:53 musiccast librespot[665]: [2025-09-29T11:18:53Z ERROR librespot_connect::spirc] Invalid state { the provided context has no tracks }
Sep 29 07:18:53 musiccast librespot[665]: [2025-09-29T11:18:53Z ERROR librespot_connect::context_resolver] setup of state failed: Invalid state { context is not available. type: Default }, last used resolve ResolveContext {
Sep 29 07:18:53 musiccast librespot[665]:         resolve: Uri(
Sep 29 07:18:53 musiccast librespot[665]:             "spotify:playlist:37i9dQZF1EYkqdzj48dyYq",
Sep 29 07:18:53 musiccast librespot[665]:         ),
Sep 29 07:18:53 musiccast librespot[665]:         fallback: Some(
Sep 29 07:18:53 musiccast librespot[665]:             "spotify:playlist:37i9dQZF1EYkqdzj48dyYq",
Sep 29 07:18:53 musiccast librespot[665]:         ),
Sep 29 07:18:53 musiccast librespot[665]:         update: Default,
Sep 29 07:18:53 musiccast librespot[665]:         action: Replace,
Sep 29 07:18:53 musiccast librespot[665]:     }
Sep 29 07:18:53 musiccast librespot[665]: [2025-09-29T11:18:53Z WARN  librespot_connect::state::context] couldn't load context info because: context is not available. type: Default
Sep 29 07:18:53 musiccast librespot[665]: [2025-09-29T11:18:53Z ERROR librespot_connect::spirc] failed to handle request: Invalid state { context is not available. type: Default }

Host (what you are running librespot on):

  • OS: Linux
  • Platform: Debian Bookworm