package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.2.tar.gz
sha256=c72807d303de137441b643fec1c7630c930ebc792b576783c7961b237c2114db
sha512=770f878bbdac8033d90e904ce8e9c84fc75331c7ff9b35e2204fafe3746f432f2664296dac91942a788b82a2da07478d91b76ed85cd880758d2def8a55144840

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.