Skip to content

Commit

Permalink
Added a user agent, bumped version, and updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
palaster committed Jun 5, 2023
1 parent efeeb19 commit 26822fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rust_radio"
version = "1.0.1"
version = "1.0.2"
authors = ["Pat Laster <[email protected]>"]
description = """
Radio Rust is minimalist rust based Internet Radio Player using eframe, Reqwest, and Rodio
Expand All @@ -18,10 +18,10 @@ exclude = ["screenshots/*"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
dirs = "5.0.0"
dirs = "5.0.1"
pls = "0.2.2"
once_cell = "1.17.1"
reqwest = "0.11.16"
tokio = { version = "1.27.0", features = ["full"] }
once_cell = "1.18.0"
reqwest = "0.11.18"
tokio = { version = "1.28.2", features = ["full"] }
rodio = { version = "0.17.1", default-features = false, features = ["symphonia-mp3"] }
eframe = "0.21.3"
eframe = "0.22.0"
2 changes: 1 addition & 1 deletion src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub(crate) async fn input(name: String, url: String) {
let mut count_down = CHUNKS_BEFORE_START;
let mut should_restart = true;

let client = reqwest::Client::new();
let client = reqwest::Client::builder().user_agent("RadioRust/1.0.2").build().expect("Client::new()");

loop {
let mut response = match client.get(&working_url).header("icy-metadata", "1").send().await {
Expand Down

0 comments on commit 26822fd

Please sign in to comment.