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

Module Collection.PlaylistSource

Operations on playlists

create collection database ~smart ~flag ~rating name query creates a new playlist with songs matched by query. The newly created playlist is inserted inside database and the playlist is returned.

playlists collection database returs all playlists managed by collection.

Sourceval find_from_name : t -> SkhcDb.Database.t -> string -> (SkhcDb.Playlist.t option, Sqlite3.Rc.t * string) result

find_from_name collection database name finds the first playlist having the name name. Returns None if no such playlist is found.

musics collection database playlist fetches all the musics within playlist.

add collection db playlist query adds musics matched by query in playlist. Returns the updated playlist along with its songs.

delete collection db playlist query removes musics matched by query from playlist. Returns the updated playlist along with its songs.

replace collection db playlist query replaces playlist's query by query. For non-smart playlist, This functions also recomputes playlist's songs. Returns the updated playlist along with its songs.

Sourceval remove : t -> SkhcDb.Database.t -> SkhcDb.Playlist.t -> (unit, Sqlite3.Rc.t * string) result

remove collection db playlist removes playlist from db.

Sourceval remove_from_name : t -> SkhcDb.Database.t -> string -> (unit, [> `NoMatchingPlaylist | `SqliteError of Sqlite3.Rc.t * string ]) result

remove_from_name is remove but tries to find the playlist from its name.