Open saveman71 opened 5 years ago
Thanks for the nice bug report. This should be fixed in https://github.com/adblockradio/webradio-metadata/commit/cd052849871c274c625c508a13ee1d99a411db08.
Updated on NPM as well, with version 0.1.38 https://www.npmjs.com/package/webradio-metadata?activeTab=versions
Just saw that you didn't change the calls for the other "channels" of fip, but just letting you know it's broken as well! In the end I ended up crafting my own solution to my problem: https://github.com/saveman71/fip-to-spotify
@saveman71 Thanks, I wrote a script to retrieve metadata to use with upmpdcli mpd controller. Do you know if there are also new api's available for the other Radio France stations?
For Mouv' the url : https://www.mouv.fr/latest/api/graphql exists but it probably needs a different SHA hash since I cannot connect using the FIP parameters. Do you know?
Would be nice if there's also new api support for France Inter, France Info, France Culturelle and the France Music stations.
I had retrieved the SHA by inspecting the fip website requests, I guess you can do the same with moov's website?
@saveman71 Thanks for your quick response and advice !How can I inspect those website requests? Is it easy to do?
Thanks again! I will go and read/view.
FIP changed their website this week, and with it their API. It's now a graphql endpoint:
https://www.fip.fr/latest/api/graphql?operationName=Now&variables=%7B%22bannerPreset%22%3A%22600x600-noTransform%22%2C%22stationId%22%3A7%2C%22previousTrackLimit%22%3A3%7D&extensions=%7B%22persistedQuery%22%3A%7B%22version%22%3A1%2C%22sha256Hash%22%3A%228a931c7d177ff69709a79f4c213bd2403f0c11836c560bc22da55628d8100df8%22%7D%7D
The
variables
param decodes to:And the
extensions
:The
extensions
param seems to be mandatory, as changing one char in the SHA hash says "persisted query not found".The main FIP station id is 7.
The repsonse is: