Skip to content

Commit

Permalink
chore(emby): recommended authorization header format
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-online committed Jan 9, 2025
1 parent 7176bed commit ae4b708
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/service/targets/emby.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,12 @@ impl Emby {
fn get_client(&self) -> anyhow::Result<reqwest::Client> {
let mut headers = header::HeaderMap::new();

headers.insert("X-Emby-Token", self.token.parse().unwrap());
headers.insert(
"Authorzation",
format!("MediaBrowser Token=\"{}\"", self.token)
.parse()
.unwrap(),
);
headers.insert("Accept", "application/json".parse().unwrap());

reqwest::Client::builder()
Expand Down

0 comments on commit ae4b708

Please sign in to comment.