this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: display song title in activity name

nathanjgill.uk 2bdfb606 a13e88ef

verified
+4 -5
+4 -5
src/main.rs
··· 166 166 if let Some(status) = status { 167 167 println!("{}: set initial playing status", "info".blue().bold()); 168 168 drpc.set_activity(|act| { 169 - act.state(format!("{}, {}", status.track_name, status.artists())) 169 + act.state(status.artists()) 170 + .name(status.track_name) 170 171 .activity_type(ActivityType::Listening) 171 172 .status_display(DisplayType::State) 172 173 })?; ··· 202 203 Ok(Some(status)) => { 203 204 println!("{}: updated playing status", "info".blue().bold()); 204 205 drpc.set_activity(|act| { 205 - act.state(format!( 206 - "{}, {}", 207 - status.track_name, 208 - status.artists())) 206 + act.state(status.artists()) 207 + .name(status.track_name) 209 208 .activity_type(ActivityType::Listening) 210 209 .status_display(DisplayType::State) 211 210 })?;