Skip to content
Discussion options

You must be logged in to vote

The logic for this is here

AppEvent::StatusUpdate(new_status) => {
let song = client.run(|c| c.get_current_song()).await?;
let mut album_art_changed = false;
let mut album_art = None;
let ro_mpd_state = ctx.read().await;
let ro_status = &ro_mpd_state.status;
let ro_song = &ro_mpd_state.current_song;
if ro_song != &song {
album_art = if let Some(s) = &song {
let uri = s.file.clone();
album_art_changed = true;
client
.run(move |c| c.find_album_art(&uri, AlbumArtOrder::EmbeddedFirst))
.await?
} else {
None
};
tx.send_safe(PluginsEvent

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@rmunn
Comment options

@rmunn
Comment options

@rmunn
Comment options

Answer selected by rmunn
Comment options

You must be logged in to vote
1 reply
@mierak
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants