package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.1.tar.gz
sha256=91dc3168bc12fdd6032c16f9990018fd54f91cea50d9f6eb798e4d5eecd9c6a6
sha512=a93c4bf39d80d2c595d361b393f0f1fd2fd078e5bd714988e835a0b5ac8c8c48d3b4cbe2e11d33c9168d9f2f44818b6a60e38b32773bd4967c24794abbf323dd

doc/shakuhachi.libs/Skhclibs/Collection/Playlist/index.html

Module Collection.PlaylistSource

Operations on playlists

create collection database ~smart ~flag ~rating name query creates a new playlist with songs matched by query. The newly created playlist is inserted inside database and the playlist is returned.

playlists collection database returs all playlists managed by collection.

Sourceval find_from_name : t -> SkhcDb.Database.t -> string -> (SkhcDb.Playlist.t option, Sqlite3.Rc.t * string) result

find_from_name collection database name finds the first playlist having the name name. Returns None if no such playlist is found.

musics collection database playlist fetches all the musics within playlist.

add collection db playlist query adds musics matched by query in playlist. Returns the updated playlist along with its songs.

delete collection db playlist query removes musics matched by query from playlist. Returns the updated playlist along with its songs.

replace collection db playlist query replaces playlist's query by query. For non-smart playlist, This functions also recomputes playlist's songs. Returns the updated playlist along with its songs.

Sourceval remove : t -> SkhcDb.Database.t -> SkhcDb.Playlist.t -> (unit, Sqlite3.Rc.t * string) result

remove collection db playlist removes playlist from db.

Sourceval remove_from_name : t -> SkhcDb.Database.t -> string -> (unit, [> `NoMatchingPlaylist | `SqliteError of Sqlite3.Rc.t * string ]) result

remove_from_name is remove but tries to find the playlist from its name.