Skip to content

Commit

Permalink
Fix anonymous login
Browse files Browse the repository at this point in the history
  • Loading branch information
bytedream committed Apr 9, 2024
1 parent af8e17e commit d2d8d93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ serde_json = "1.0"
serde_urlencoded = "0.7"
smart-default = "0.7"
tokio = { version = "1.37", features = ["sync"] }
uuid = { version = "1.8", features = ["v4"] }
webpki-roots = "0.26"

crunchyroll-rs-internal = { version = "0.10.4", path = "internal" }
Expand Down
1 change: 1 addition & 0 deletions src/crunchyroll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ mod auth {
.post(endpoint)
.header(header::AUTHORIZATION, "Basic Y3Jfd2ViOg==")
.header(header::CONTENT_TYPE, "application/x-www-form-urlencoded")
.header("ETP-Anonymous-ID", uuid::Uuid::new_v4().to_string())
.body(
serde_urlencoded::to_string([
("grant_type", "client_id"),
Expand Down

0 comments on commit d2d8d93

Please sign in to comment.