mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 00:05:55 +03:00
[GH-ISSUE #1558] Possible to add Year/Date to emitted track_changed events? #704
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#704
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?
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
metadatadefinition files that Albums have a date attached to them, though Tracks seem to only haveearliest_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_timestampdate 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.@photovoltex commented on GitHub (Sep 9, 2025):
I think if we don't need to do another request and can just forward it on
AudioItemnothing speaks against doing it. If you look atUniqueFields::Episodethere is already apublish_timeincluded, 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