package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.0_1.tar.gz
sha256=541a7ac078a520730a71edf4d2fe0f17cc98f0b9ad82060db62120a7d2519ae5
sha512=37b98cb52dab8293adb92f71e91394cf1c5d0d481d03893c320cc8aa550459a30dabdfdc0018f512d3a7a547f2899b493a20d86f450bc084b78e30b40234a911

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.