MCPcopy Create free account
hub / github.com/Moosync/Moosync / get_song_key

Method get_song_key

src/store/player_store.rs:358–367  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

356
357 #[tracing::instrument(level = "debug", skip(self))]
358 fn get_song_key(&self) -> String {
359 if let Some(current_song) = &self.data.current_song {
360 return current_song
361 .song
362 .provider_extension
363 .clone()
364 .unwrap_or(current_song.song.type_.to_string());
365 }
366 "".to_string()
367 }
368
369 #[tracing::instrument(level = "debug", skip(self, volume))]
370 pub fn set_volume(&mut self, volume: f64) {

Callers 3

set_volumeMethod · 0.80
get_volumeMethod · 0.80
get_raw_volumeMethod · 0.80

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected