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/Album/index.html

Module Collection.AlbumSource

Operations on albums

musics_from_id collection database album_id returns all musics having the album id album_id.

Sourceval set_rating : t -> SkhcDb.Database.t -> SkhcDb.Album.t -> int option -> (SkhcDb.Album.t, Sqlite3.Rc.t * string) result

set_rating collection database album rating sets album rating to rating. if SkhcDb.Album.rating album = rating, returns album as is. Otherwise, call SkhcDb.Album.update.

set_flag collection database album sets flag to true. if album has already flag set to true, this functions returns album as is. Otherwise, it calls SkhcDb.Album.update.

unset_flag collection database album sets flag to false. if album has already flag set to false, this functions returns album as is. Otherwise, it calls SkhcDb.Album.update.

Sourceval cover : t -> SkhcDb.Album.t -> string option

cover collection album returns the cover bytes associated with album in collection. Returns None is album doesn't have an artwork. This function doesn't try to find a cover inside album' songs.

raise Sys_error if one of the underlying system calls fails.