You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 3, 2019. It is now read-only.
Unfortunately I haven't found any simple way of extracting the album information from the player web-page.
Is it possible to reuse the web-player authenticated session to actually execute an API request?
For example the hyperlink of the anchor representing the title of the song contains the album id. Which we could use to execute an API request1 GET https://api.spotify.com/v1/albums/{id}
Basically my questions are:
Does the plugin support a mechanism for creating an XHR request ?
Does the plugin support triggering this request without interfering with the rest of the functionality?
Does the plugin support reusing the authenticated user session of the player?
Additional Information:
Version: MellowPlayer 3.4.0.0
Affected streaming services (if any): Spotify
Operating System: *(if using GNU/Linux): Archlinux, native package compiled from aur, with QtWebEngine Widevine
I have a working version of the Spotify plugin which loads the data from the API, but the only missing part is the Authorization header which needs to be intercepted from the other requests.
Since there isn't any way to intercept them at DOM level, I was thinking that maybe it's possible to use QWebEngineUrlRequestInterceptor from the Qt code to extract this header and then make it available it in the spotify plugin script.
@CDuquesnoy is this a feasable option? (I'm asking because my Qt is very rusty, and the new QWebView APIs are completely foreign to me)
Everything is possible, but I don't like the idea to add c++ code specifically for a plugin. I'd prefer if plugin specific code would remain in the plugin itself.
The github repository will be archived soon and this issue will become read-only. We suggest you continue the discussion and follow the progress on this issue at gitlab.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description:
A followup to #272.
Unfortunately I haven't found any simple way of extracting the album information from the player web-page.
Is it possible to reuse the web-player authenticated session to actually execute an API request?
For example the hyperlink of the anchor representing the title of the song contains the album id. Which we could use to execute an API request1
GET https://api.spotify.com/v1/albums/{id}
Basically my questions are:
Additional Information:
[1] https://developer.spotify.com/documentation/web-api/reference/albums/get-album/
The text was updated successfully, but these errors were encountered: