package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.1.0.tar.gz
sha256=bb7f91cc44c09f922d2a614e9e01fd0d2976840bacf839a8b99de63c6fc5b3b8
sha512=f02827db4228b017bb2ad7d64cb1c0667831ec2341e6f759266ec834e40627c2affeace143c6d5e769b3acce63f889b3cbd1a9ca4768091840e8fce1d4750f86

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.