mirror of
https://github.com/jpochyla/psst.git
synced 2026-04-27 23:45:57 +03:00
[GH-ISSUE #268] [WIP] Spotify artist URI to social pages, Wiki summary #192
Labels
No labels
api
bug
build
documentation
duplicate
enhancement
good first issue
help wanted
idea
invalid
linux
lowprio
macos
pull-request
upstream
windows
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/psst#192
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 @jacksongoode on GitHub (Jan 20, 2022).
Original GitHub issue: https://github.com/jpochyla/psst/issues/268
Since seeing this feature on the roadmap, I thought I'd get the initial architecture in place to make sure this might be the best/most effective string of API calls to make.
Right now it takes two calls to reach social links, four to reach a Wiki summary:
I feel like it should be possible to reach the MusicBrainz social links with one call, but their API docs are a bit of a mess. The total call time with
reqwestsis around 3-4s.@kingosticks commented on GitHub (Jan 21, 2022):
How are you getting the musicbrainz ID from a Spotify URL? Is there some API to do that that I've missed?
@jacksongoode commented on GitHub (Jan 21, 2022):
The MusicBrainz ID is retrieved by looking up which artist has the Spotify URL in their metadata on MusicBrainz.
For example: https://beta.musicbrainz.org/ws/2/url/?query=url:https://open.spotify.com/artist/1WZarnZpWEv7dDtjAETt4X
@kingosticks commented on GitHub (Jan 21, 2022):
Excellent, thank you!
@jpochyla commented on GitHub (Jan 22, 2022):
That sounds great @jacksongoode!
@jacksongoode commented on GitHub (Feb 14, 2022):
A proof of concept using
ureqcan be checked out here. First time working with Rust so it might take me a while to integrate :)@AmyMagdalena commented on GitHub (Apr 13, 2022):
Not sure if important but the URI without the subdomain of
beta.produces the same XML datahttps://musicbrainz.org/ws/2/url/?query=url:https://open.spotify.com/artist/1WZarnZpWEv7dDtjAETt4X
non-beta URI I feel is potentially more future stable
@SO9010 commented on GitHub (Oct 2, 2024):
Heya, spotify does this and I am probably able to use the same API request format as I did with getting the lyrics for the songs as it's the same background api provider.
@jacksongoode commented on GitHub (Oct 16, 2024):
Closed with #537