Always pass cover URL to notification

Regardless of the `cover` feature
This commit is contained in:
Jonas Wunderlich
2023-02-24 18:30:10 +01:00
committed by GitHub
parent f7e415666a
commit e8d652cc78

View File

@@ -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)
});
}