diff --git a/src/queue.rs b/src/queue.rs index f2d2fa5..4fe08e4 100644 --- a/src/queue.rs +++ b/src/queue.rs @@ -274,7 +274,11 @@ impl Queue { let notification_id = self.notification_id.clone(); std::thread::spawn({ let track_name = track.to_string(); - let cover_url = track.cover_url(); + let cover_url = if cfg!(feature = "cover") { + track.cover_url() + } else { + None + }; move || send_notification(&track_name, cover_url, notification_id) }); }