package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.2.0.tar.gz
sha256=966fc8667c2aa9830e64950d2de74bd564a65d60e1f50cfd3dc1e99ef106dc47
sha512=6423ce04d784ba521a7f49fabdafbe036e2dd80cd08ca999fdc6767262d7f12aa4e5002d65efd4c568b343eaabf4d680191c88334d629e1ca0156084531e9e0b

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.