Add notification customization (#893)

* Add custom notification formatting

* Added `notification_format` to README

* cleaned up code formatting

* Fix typo

Co-authored-by: Henrik Friedrichsen <henrik@affekt.org>
This commit is contained in:
eulerfan271
2022-08-07 06:51:38 -07:00
committed by GitHub
parent 24414ef5f7
commit 593a4c9284
4 changed files with 63 additions and 9 deletions

View File

@@ -175,10 +175,14 @@ async fn main() -> Result<(), String> {
println!("Connecting to Spotify..");
let spotify = spotify::Spotify::new(event_manager.clone(), credentials, cfg.clone());
let queue = Arc::new(queue::Queue::new(spotify.clone(), cfg.clone()));
let library = Arc::new(Library::new(&event_manager, spotify.clone(), cfg.clone()));
let queue = Arc::new(queue::Queue::new(
spotify.clone(),
cfg.clone(),
library.clone(),
));
#[cfg(feature = "mpris")]
let mpris_manager = Arc::new(mpris::MprisManager::new(
event_manager.clone(),