Skip to content

Commit

Permalink
fix rate limit issue, add partner id
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Mar 1, 2024
1 parent fd9db9f commit 4a7efbd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub async fn extract_stream_url(url: &str, playlist_type: Option<String>) -> Res

pub async fn get_currently_playing(station: &str) -> Result<String, Error> {
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()
Expand Down

0 comments on commit 4a7efbd

Please sign in to comment.