radio-rs

Place a description here.
git clone git://git.alex.balgavy.eu/reponame.git
Log | Files | Refs

commit 51ab519777061a9bff83002cdb1f8dc9a9a4d509
parent f909b8cbc4f0ca007918065bbaddfd8adbcc95c9
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Sun,  5 Jun 2022 00:24:57 +0200

Some renaming

Diffstat:
Msrc/main.rs | 2+-
Msrc/radio/baseradio.rs | 6+++---
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main.rs b/src/main.rs @@ -47,7 +47,7 @@ fn main() { let top_radios = &data.config.radios; let chosen_radio = choose_radio(top_radios); - let radio = baseradio::BaseRadio::new(chosen_radio.url.as_ref().unwrap()); + let radio = baseradio::StreamRadio::new(chosen_radio.url.as_ref().unwrap()); let opts = RadioOptions { method: data.config.player, load_options: chosen_radio.mpc_load_option, diff --git a/src/radio/baseradio.rs b/src/radio/baseradio.rs @@ -1,10 +1,10 @@ use crate::tunein::*; use std::process::Command; -pub struct BaseRadio { +pub struct StreamRadio { stream: String, } -impl BaseRadio { +impl StreamRadio { pub fn new(stream: &str) -> Self { Self { stream: stream.to_string(), @@ -12,7 +12,7 @@ impl BaseRadio { } } -impl TuneIn for BaseRadio { +impl TuneIn for StreamRadio { fn play(&self, options: &RadioOptions) { match options { RadioOptions {