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

Function add_to_playlist

src/utils/db_utils.rs:330–337  ·  view source on GitHub ↗
(id: String, songs: Vec<Song>)

Source from the content-addressed store, hash-verified

328
329#[tracing::instrument(level = "debug", skip(id, songs))]
330pub fn add_to_playlist(id: String, songs: Vec<Song>) {
331 spawn_local(async move {
332 let res = super::invoke::add_to_playlist(id, songs).await;
333 if res.is_err() {
334 tracing::error!("Error adding to playlist: {:?}", res);
335 }
336 });
337}
338
339#[tracing::instrument(level = "debug", skip(playlist))]
340pub fn create_playlist(playlist: QueryablePlaylist, songs: Option<Vec<Song>>) {

Callers 3

ControlsFunction · 0.85
create_playlistFunction · 0.85
add_to_playlistMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected