mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #828] Interest in expanding Metadata impls for Track and Album, adding a ContextChanged event mechanism #420
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#420
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 @capnfabs on GitHub (Aug 2, 2021).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/828
Hi team,
I'm making some changes to
spotifydso that it can obtain enough information for its MPRIS implementation from librespot. I'm interested in making some changes to librespot to support this, and wanted to check if that seemed reasonable before opening PRs :)The main thing I'd like for this is to expand the
metadata::Trackandmetadata::Albumstructs so that they have a more complete set of info. It seems like this information is available in the proto that's used to create these structs, but that it's not plumbed through yet. The change seems simple (github.com/librespot-org/librespot@4f54dc8f5b); would it be ok to submit a PR for this?Another thing I'd like a way of knowing when the context changes (both context URI, and track number from playlist). I put together a way of doing that using a mechanism similar to PlayerEvents in
github.com/librespot-org/librespot@b28bea31ff. Does this seem more broadly useful, and would a PR for this be worthwhile? Is there a better way to do it?Finally, is there a way of retrieving Loop/Shuffle status from librespot? I'm interested because
spotifyd's MPRIS implementation pulls this from the Spotify API (usingrspotify), which interacts badly withplayerctl, resulting in delays when runningplayerctl play-pausetargeting spotifyd (details here: https://github.com/Spotifyd/spotifyd/pull/977#issuecomment-890578852).Thanks in advance, and thanks also for all your work on librespot!
@roderickvd commented on GitHub (Aug 7, 2021):
Thanks for chiming in.
Yeah, let's get that in a PR.
Ideally it would all be dispatched under the same
--oneventhandler.I've been asking this question myself as I've been working on
new-api. From the proto's, I don't think so? To double-check, you could best read through thelibrespot-javacode. If it's there, @devgianlu will have implemented it.