<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Stored_playlists_lwt (libmpdclient.Mpd.Stored_playlists_lwt)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">libmpdclient</a> &#x00BB; <a href="../index.html">Mpd</a> &#x00BB; Stored_playlists_lwt</nav><h1>Module <code>Mpd.Stored_playlists_lwt</code></h1></header><aside><p>LwtStoredPlaylists : Playlists are stored inside the configured playlist directory. They are addressed with their file name (without the directory and without the .m3u suffix). This is module is based on Lwt.</p></aside><dl><dt class="spec value" id="val-listplaylists"><a href="#val-listplaylists" class="anchor"></a><code><span class="keyword">val </span>listplaylists : <a href="../Client_lwt/index.html#type-t">Client_lwt.t</a> <span>&#45;&gt;</span> (string list, string) Stdlib.result Lwt.t</code></dt><dd><p>Print a list of the playlist names.</p></dd></dl><dl><dt class="spec value" id="val-load"><a href="#val-load" class="anchor"></a><code><span class="keyword">val </span>load : <a href="../Client_lwt/index.html#type-t">Client_lwt.t</a> <span>&#45;&gt;</span> string <span>&#45;&gt;</span> ?&#8288;range:(int<span class="keyword"> * </span>int) <span>&#45;&gt;</span> unit <span>&#45;&gt;</span> <a href="../Protocol/index.html#type-response">Protocol.response</a> Lwt.t</code></dt><dd><p>Load the playlist into the current queue. Playlist plugins are supported. A range may be specified to load only a part of the playlist.</p></dd></dl><dl><dt class="spec value" id="val-playlistadd"><a href="#val-playlistadd" class="anchor"></a><code><span class="keyword">val </span>playlistadd : <a href="../Client_lwt/index.html#type-t">Client_lwt.t</a> <span>&#45;&gt;</span> string <span>&#45;&gt;</span> string <span>&#45;&gt;</span> <a href="../Protocol/index.html#type-response">Protocol.response</a> Lwt.t</code></dt><dd><p>Add URI to the playlist NAME.m3u. NAME.m3u will be created if it does not exist.</p></dd></dl><dl><dt class="spec value" id="val-playlistclear"><a href="#val-playlistclear" class="anchor"></a><code><span class="keyword">val </span>playlistclear : <a href="../Client_lwt/index.html#type-t">Client_lwt.t</a> <span>&#45;&gt;</span> string <span>&#45;&gt;</span> <a href="../Protocol/index.html#type-response">Protocol.response</a> Lwt.t</code></dt><dd><p>Clear the playlist NAME.m3u.</p></dd></dl><dl><dt class="spec value" id="val-playlistdelete"><a href="#val-playlistdelete" class="anchor"></a><code><span class="keyword">val </span>playlistdelete : <a href="../Client_lwt/index.html#type-t">Client_lwt.t</a> <span>&#45;&gt;</span> string <span>&#45;&gt;</span> int <span>&#45;&gt;</span> <a href="../Protocol/index.html#type-response">Protocol.response</a> Lwt.t</code></dt><dd><p>Delete SONGPOS from the playlist NAME.m3u.</p></dd></dl><dl><dt class="spec value" id="val-playlistmove"><a href="#val-playlistmove" class="anchor"></a><code><span class="keyword">val </span>playlistmove : <a href="../Client_lwt/index.html#type-t">Client_lwt.t</a> <span>&#45;&gt;</span> string <span>&#45;&gt;</span> int <span>&#45;&gt;</span> int <span>&#45;&gt;</span> <a href="../Protocol/index.html#type-response">Protocol.response</a> Lwt.t</code></dt><dd><p>Move the song at position FROM in the playlist NAME.m3u to the position TO.</p></dd></dl><dl><dt class="spec value" id="val-rename"><a href="#val-rename" class="anchor"></a><code><span class="keyword">val </span>rename : <a href="../Client_lwt/index.html#type-t">Client_lwt.t</a> <span>&#45;&gt;</span> string <span>&#45;&gt;</span> string <span>&#45;&gt;</span> <a href="../Protocol/index.html#type-response">Protocol.response</a> Lwt.t</code></dt><dd><p>Rename the playlist NAME.m3u to NEW_NAME.m3u.</p></dd></dl><dl><dt class="spec value" id="val-rm"><a href="#val-rm" class="anchor"></a><code><span class="keyword">val </span>rm : <a href="../Client_lwt/index.html#type-t">Client_lwt.t</a> <span>&#45;&gt;</span> string <span>&#45;&gt;</span> <a href="../Protocol/index.html#type-response">Protocol.response</a> Lwt.t</code></dt><dd><p>Remove the playlist NAME.m3u from the playlist directory.</p></dd></dl><dl><dt class="spec value" id="val-save"><a href="#val-save" class="anchor"></a><code><span class="keyword">val </span>save : <a href="../Client_lwt/index.html#type-t">Client_lwt.t</a> <span>&#45;&gt;</span> string <span>&#45;&gt;</span> <a href="../Protocol/index.html#type-response">Protocol.response</a> Lwt.t</code></dt><dd><p>Save the current playlist to NAME.m3u in the playlist directory.</p></dd></dl></div></body></html>