How to set up private LastFM API for Astra & How to build with the API Enabled #175
|
Hello, I am maintaining the astra-music-git package. I see that in the build github workflow, lastfm api key is included via a secret. When installing the packaged from AUR, it skips this step. I want to include it via a ENV_VAR check (something like ASTRA_LASTFM_API) and I want info on in what way to create the API Account and how to build with the key. |
Replies: 5 comments
|
Sorry, missed this! Official Last.fm support requires both LASTFM_API_KEY and LASTFM_SHARED_SECRET. Please be aware though that putting credentials directly in the PKGBUILD, source repository, or any publicly downloadable build resource would make them public as the person building the package must supply those values locally during the build. Astra already supports custom scrobbling endpoints with their own endpoint credentials, so build time credentials are only required for the built in official Last.fm connection. Last.fm API credentials can be created at https://www.last.fm/api/account/create. |
I want to use user set environment variables for build process. Just a check if those variables exist and if so building with them. Not storing my credentials in the PKGBUILD.
I wanted to ask about the callback URL. As I haven't used the LastFM API before, I am questioning if that field should have something or not when creating an API account. |
Ah yeah that makes sense Astra doesn't use the callback URL at all, I believe I just put a localhost URL in, if I remember correctly something has to be there to make one |
Thanks for the info, Now I can test it out and implement it into the PKGBUILD. |
Ah yeah that makes sense
Astra doesn't use the callback URL at all, I believe I just put a localhost URL in, if I remember correctly something has to be there to make one