mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-22 15:25:46 +00:00
fix(cover): embed fanart.tv project key so from-source builds work (#1139)
The project key was injected only at our build time (CI secret / option_env!), so AUR, Nix and any from-source build had no key baked in and the External Artwork toggle was inert there. Commit it as a source literal (like the Last.fm key, and as fanart.tv terms expect: the app ships a project key, users add their own on top via BYOK). Drops the now-redundant CI wiring.
This commit is contained in:
@@ -15,6 +15,13 @@ use super::fetch::build_subsonic_url;
|
||||
|
||||
const FANART_API_BASE: &str = "https://webservice.fanart.tv/v3/music";
|
||||
const MUSICBRAINZ_BASE: &str = "https://musicbrainz.org/ws/2";
|
||||
/// fanart.tv project `api_key`, embedded in the binary like Last.fm's key and as
|
||||
/// fanart.tv's own terms expect ("sent in addition to your project key" — the app
|
||||
/// ships a project key, users add a personal one on top). Committed as a literal
|
||||
/// (not a build secret) so every build — CI, local, AUR, Nix, from-source — has
|
||||
/// it; desktop-app keys are extractable from any binary anyway. Users can still
|
||||
/// add their own personal key (BYOK, §22), sent in addition to this one.
|
||||
pub(super) const FANART_PROJECT_KEY: &str = "a32e00543d18deadb797bc0cc9826760";
|
||||
/// MusicBrainz requires a meaningful, contactable User-Agent (their ToS).
|
||||
const MUSICBRAINZ_USER_AGENT: &str = concat!(
|
||||
"Psysonic/",
|
||||
|
||||
Reference in New Issue
Block a user