Update notification body to include line break between track and album information
This commit is contained in:
parent
aae9580bce
commit
5c7a8fc694
2 changed files with 3 additions and 3 deletions
|
@ -160,13 +160,13 @@ pub fn track_cover(
|
||||||
force_use_external_cover: bool,
|
force_use_external_cover: bool,
|
||||||
no_use_external_cover: bool,
|
no_use_external_cover: bool,
|
||||||
) -> TrackCover {
|
) -> TrackCover {
|
||||||
if !force_use_external_cover {
|
/*if !force_use_external_cover {
|
||||||
#[cfg(feature = "debug")]
|
#[cfg(feature = "debug")]
|
||||||
info!("Trying to get the embedded cover of \"{track_path}\".");
|
info!("Trying to get the embedded cover of \"{track_path}\".");
|
||||||
if let Ok(Some(cover)) = get_embedded_art(track_path) {
|
if let Ok(Some(cover)) = get_embedded_art(track_path) {
|
||||||
return TrackCover::Embedded(cover);
|
return TrackCover::Embedded(cover);
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
if !no_use_external_cover {
|
if !no_use_external_cover {
|
||||||
#[cfg(feature = "debug")]
|
#[cfg(feature = "debug")]
|
||||||
|
|
|
@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
const NOTIFICATION_TIMEOUT: u8 = 5;
|
const NOTIFICATION_TIMEOUT: u8 = 5;
|
||||||
const NOTIFICATION_BODY: &str =
|
const NOTIFICATION_BODY: &str =
|
||||||
"<b>Playing:</b> {title} from {album} \n\n <b>Artist:</b> {artist} - {year}";
|
"<b>Playing:</b> {title} \nfrom {album} \n <b>Artist:</b> {artist} - {year}";
|
||||||
const NOTIFICATION_SUMMARY: &str = "{artist} - {title}";
|
const NOTIFICATION_SUMMARY: &str = "{artist} - {title}";
|
||||||
const NOTIFICATION_APP_NAME: &str = "C* Music Player";
|
const NOTIFICATION_APP_NAME: &str = "C* Music Player";
|
||||||
const DEFAULT_MAX_DEPTH: u8 = 3;
|
const DEFAULT_MAX_DEPTH: u8 = 3;
|
||||||
|
|
Loading…
Reference in a new issue