From 4a7efbdd45634c7e6a12a2202fd1d8c6358ae72f Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Fri, 1 Mar 2024 12:20:13 +0000 Subject: [PATCH] fix rate limit issue, add partner id --- Cargo.lock | 2 +- README.md | 4 ++-- src/extract.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5f2ae14..59ce585 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3239,7 +3239,7 @@ dependencies = [ [[package]] name = "tunein-cli" -version = "0.2.3" +version = "0.2.4" dependencies = [ "anyhow", "clap", diff --git a/README.md b/README.md index e851bd4..f7df2d6 100644 --- a/README.md +++ b/README.md @@ -69,8 +69,8 @@ nix profile install --experimental-features "nix-command flakes" github:tsirysnd Or download the latest release for your platform [here](https://github.com/tsirysndr/tunein-cli/releases). ## 📦 Downloads -- `Mac`: arm64: [tunein_v0.2.4_aarch64-apple-darwin.tar.gz](https://github.com/tsirysndr/tunein-cli/releases/download/v0.2.4/tunein_v0.2.4_aarch64-apple-darwin.tar.gz) intel: [tunein_v0.2.4_x86_64-apple-darwin.tar.gz](https://github.com/tsirysndr/tunein-cli/releases/download/v0.2.4/tunein_v0.2.4_x86_64-apple-darwin.tar.gz) -- `Linux`: [tunein_v0.2.4_x86_64-unknown-linux-gnu.tar.gz](https://github.com/tsirysndr/tunein-cli/releases/download/v0.2.4/tunein_v0.2.4_x86_64-unknown-linux-gnu.tar.gz) +- `Mac`: arm64: [tunein_v0.2.5_aarch64-apple-darwin.tar.gz](https://github.com/tsirysndr/tunein-cli/releases/download/v0.2.5/tunein_v0.2.5_aarch64-apple-darwin.tar.gz) intel: [tunein_v0.2.5_x86_64-apple-darwin.tar.gz](https://github.com/tsirysndr/tunein-cli/releases/download/v0.2.5/tunein_v0.2.5_x86_64-apple-darwin.tar.gz) +- `Linux`: [tunein_v0.2.5_x86_64-unknown-linux-gnu.tar.gz](https://github.com/tsirysndr/tunein-cli/releases/download/v0.2.5/tunein_v0.2.5_x86_64-unknown-linux-gnu.tar.gz) ## 🚀 Usage ``` USAGE: diff --git a/src/extract.rs b/src/extract.rs index ec0e9d8..d477868 100644 --- a/src/extract.rs +++ b/src/extract.rs @@ -55,7 +55,7 @@ pub async fn extract_stream_url(url: &str, playlist_type: Option) -> Res pub async fn get_currently_playing(station: &str) -> Result { let client = Client::new(); - let url = format!("https://feed.tunein.com/profiles/{}/nowPlaying", station); + let url = format!("https://feed.tunein.com/profiles/{}/nowPlaying?partnerId=RadioTime", station); let response: NowPlaying = client .get(Url::parse(&url)?) .recv_json()