diff options
author | metamuffin <metamuffin@disroot.org> | 2025-04-23 13:58:03 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-04-23 13:58:03 +0200 |
commit | 960007b06e2b47d41f88365c26f043f61c817f08 (patch) | |
tree | 165dd8deaa294ed2d4a9719c41dd66a02261c1f2 /import/src/lib.rs | |
parent | 5d2145406c4f2e11b0cde06f5f12c9d16ab51ded (diff) | |
download | jellything-960007b06e2b47d41f88365c26f043f61c817f08.tar jellything-960007b06e2b47d41f88365c26f043f61c817f08.tar.bz2 jellything-960007b06e2b47d41f88365c26f043f61c817f08.tar.zst |
import: send user-agent header to all apis
Diffstat (limited to 'import/src/lib.rs')
-rw-r--r-- | import/src/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
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<Semaphore> = LazyLock::new(|| Semaphore::new(1)); pub static IMPORT_ERRORS: RwLock<Vec<String>> = RwLock::const_new(Vec::new()); |