summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml2
-rw-r--r--src/audio/rodio.rs2
-rw-r--r--src/main.rs5
4 files changed, 7 insertions, 4 deletions
diff --git a/Cargo.lock b/Cargo.lock
index ca0db0f..1f8fd9c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1463,7 +1463,7 @@ dependencies = [
[[package]]
name = "somafm"
-version = "0.5.0"
+version = "0.5.1"
dependencies = [
"icy-metadata",
"inquire",
diff --git a/Cargo.toml b/Cargo.toml
index 72ce3c2..f4ed7b6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "somafm"
description = "A Rust-based command line player for SomaFM radio"
-version = "0.5.0"
+version = "0.5.1"
authors = ["Yuval Adam <_@yuv.al>"]
edition = "2021"
license = "MIT"
diff --git a/src/audio/rodio.rs b/src/audio/rodio.rs
index 49ebe40..d1a5d0d 100644
--- a/src/audio/rodio.rs
+++ b/src/audio/rodio.rs
@@ -50,7 +50,7 @@ impl Rodio {
|metadata| {
if let Ok(md) = metadata {
if let Some(tr) = md.stream_title() {
- println!(" {tr}");
+ println!("{tr}");
}
}
},
diff --git a/src/main.rs b/src/main.rs
index 5303421..d4f84ce 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -22,7 +22,10 @@ async fn main() {
let url = get_stream_url(&playlist).await.unwrap();
sp.stop_with_newline();
- let _sp = Spinner::new(Spinners::Arrow3, format!("Playing {} at {}", ch.title, url));
+ let mut sp = Spinner::new(Spinners::Arrow3, format!("Playing {} at {}", ch.title, url));
+ sp.stop_with_newline();
+
+ let _sp = Spinner::new(Spinners::Arrow3, String::new());
audio::get_backend().play(&url).await
}
Err(_e) => {