From 960007b06e2b47d41f88365c26f043f61c817f08 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 23 Apr 2025 13:58:03 +0200 Subject: import: send user-agent header to all apis --- import/src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'import/src/lib.rs') diff --git a/import/src/lib.rs b/import/src/lib.rs index bd01fc9..b45361a 100644 --- a/import/src/lib.rs +++ b/import/src/lib.rs @@ -38,9 +38,16 @@ use trakt::Trakt; pub mod acoustid; pub mod infojson; +pub mod musicbrainz; pub mod tmdb; pub mod trakt; +pub const USER_AGENT: &'static str = concat!( + "jellything/", + env!("CARGO_PKG_VERSION"), + " ( https://codeberg.org/metamuffin/jellything )" +); + static IMPORT_SEM: LazyLock = LazyLock::new(|| Semaphore::new(1)); pub static IMPORT_ERRORS: RwLock> = RwLock::const_new(Vec::new()); -- cgit v1.2.3-70-g09d2