[GH-ISSUE #1558] Possible to add Year/Date to emitted track_changed events? #704

Open
opened 2026-02-27 19:32:03 +03:00 by kerem · 1 comment
Owner

Originally created by @ryansalerno on GitHub (Aug 27, 2025).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1558

Is your feature request related to a problem? Please describe.
When trying to build a Now-Playing-type display, it would be helpful to have the Album's year/release-date accessible. I can see in the metadata definition files that Albums have a date attached to them, though Tracks seem to only have earliest_live_timestamp. Regardless, neither are passed through as variables to the Events system.

Describe the solution you'd like
Maybe the data isn't available and/or the earliest_live_timestamp date field is not useful. But ideally, if the year or date is attached to an Album entity and it can be passed along on Tracks without doubling up on lookups/queries, that would be excellent.

Originally created by @ryansalerno on GitHub (Aug 27, 2025). Original GitHub issue: https://github.com/librespot-org/librespot/issues/1558 **Is your feature request related to a problem? Please describe.** When trying to build a Now-Playing-type display, it would be helpful to have the Album's year/release-date accessible. I can see in the `metadata` definition files that Albums have a date attached to them, though Tracks seem to only have `earliest_live_timestamp`. Regardless, neither are passed through as variables to the Events system. **Describe the solution you'd like** Maybe the data isn't available and/or the `earliest_live_timestamp` date field is not useful. But ideally, if the year or date is attached to an Album entity and it can be passed along on Tracks without doubling up on lookups/queries, that would be excellent.
Author
Owner

@photovoltex commented on GitHub (Sep 9, 2025):

I think if we don't need to do another request and can just forward it on AudioItem nothing speaks against doing it. If you look at UniqueFields::Episode there is already a publish_time included, so adding it to the track when available should be no problem.

This seems to be fairly easy to do, so if you want it I would encourage you to look into the topic and contribute to the project :D

<!-- gh-comment-id:3272126590 --> @photovoltex commented on GitHub (Sep 9, 2025): I think if we don't need to do another request and can just forward it on `AudioItem` nothing speaks against doing it. If you look at `UniqueFields::Episode` there is already a `publish_time` included, so adding it to the track when available should be no problem. This seems to be fairly easy to do, so if you want it I would encourage you to look into the topic and contribute to the project :D
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#704
No description provided.