From e8d652cc78f4a55e19f91d0c2f7e66357ac75952 Mon Sep 17 00:00:00 2001 From: Jonas Wunderlich <32615971+jonas-w@users.noreply.github.com> Date: Fri, 24 Feb 2023 18:30:10 +0100 Subject: [PATCH] Always pass cover URL to notification Regardless of the `cover` feature --- src/queue.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/queue.rs b/src/queue.rs index fd19211..bcfcbcf 100644 --- a/src/queue.rs +++ b/src/queue.rs @@ -338,11 +338,7 @@ impl Queue { let summary_txt = Playable::format(track, &title, self.library.clone()); let body_txt = Playable::format(track, &body, self.library.clone()); - let cover_url = if cfg!(feature = "cover") { - track.cover_url() - } else { - None - }; + let cover_url = track.cover_url(); move || send_notification(&summary_txt, &body_txt, cover_url, notification_id) }); }