mpd_client 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4e6e63e19367101a4fe97e8cc2cec2c9670a2db
4
- data.tar.gz: 885cada023e75ab8891ef8c092fdf86ffddefa8f
3
+ metadata.gz: 45940a692b506f92dd70498035fac893e9bf4dab
4
+ data.tar.gz: 897701b929535c3e416a22e901de2031d7000c98
5
5
  SHA512:
6
- metadata.gz: 2063ffee152d4698f8e8c593b113c50c7d41d4a57fc98ad145fc72a2485e19781a8f93f2c1ae5f4ac75a8d53e221ae472df200289e698ac44d1cf8c0dba153ae
7
- data.tar.gz: 5b9cb922941282c395da464aebcb4149b3acdfbc920872680e83256c66c621897496dee28318e7a66111574af01ed31803bb722cf98eb49a4fdb3d389e645904
6
+ metadata.gz: d377d63a337f38905dd2f1230914c4e694e96fc66be7540c4fc475ee02ec30ae1eb2dcdbbaac1fa15b028d5022678b43f4de64b23c5a641f30f2e740924c874a
7
+ data.tar.gz: 2c4a4c99ec3c4e56b1a6fafda5e7e6fcda10a383bdcd0b7620aa47f4d3c99cae6ac872fc239e049354693a88407ad63d990dac171064f1960c5a5042909888e9
@@ -1,5 +1,11 @@
1
1
  # MPDClient CHANGELOG
2
2
 
3
+ ### 0.0.5
4
+
5
+ * Support for mount, umount, listmounts, listneighbors
6
+ * Support for listfiles
7
+ * Support for rangeid, addtagid, cleartagid
8
+
3
9
  ### 0.0.4
4
10
 
5
11
  * Added support for readcomments, toggleoutput, volume
@@ -1,608 +1,657 @@
1
- * [Status Commands](#status-commands)
2
- * [Playback Option Commands](#playback-option-commands)
3
- * [Playback Control Commands](#playback-control-commands)
4
- * [Playlist Commands](#playlist-commands)
5
- * [Stored Playlist Commands](#stored-playlist-commands)
6
- * [Database Commands](#database-commands)
7
- * [Sticker Commands](#sticker-commands)
8
- * [Connection Commands](#connection-commands)
9
- * [Reflection Commands](#reflection-commands)
10
- * [Client to client](#client-to-client)
11
-
12
- ### Status Commands ###
13
-
14
- ---
15
- `clearerror => fetch_nothing`
16
-
17
- > Clears the current error message in status (this is also accomplished by any command that starts playback).
18
-
19
- ---
20
- `currentsong => fetch_object`
21
-
22
- > Displays the song info of the current song (same song that is identified in status).
23
-
24
- ---
25
- `idle [SUBSYSTEMS...] => fetch_list`
26
-
27
- > Waits until there is a noteworthy change in one or more of MPD's subsystems. As soon as there is one, it lists all changed systems in a line in the format changed: `SUBSYSTEM`, where `SUBSYSTEM` is one of the following:
28
-
29
- > * `database`: the song database has been modified after update.
30
- * `update`: a database update has started or finished. If the database was modified during the update, the database event is also emitted.
31
- * `stored_playlist`: a stored playlist has been modified, renamed, created or deleted
32
- * `playlist`: the current playlist has been modified
33
- * `player`: the player has been started, stopped or seeked
34
- * `mixer`: the volume has been changed
35
- * `output`: an audio output has been enabled or disabled
36
- * `options`: options like repeat, random, crossfade, replay gain
37
- * `sticker`: the sticker database has been modified
38
- * `subscription`: a client has subscribed or unsubscribed to a channel
39
- * `message`: a message was received on a channel this client is subscribed to; this event is only emitted when the queue is empty
40
-
41
- > While a client is waiting for `idle` results, the server disables timeouts, allowing a client to wait for events as long as mpd runs. The `idle` command can be canceled by sending the command `noidle` (no other commands are allowed). MPD will then leave `idle` mode and print results immediately; might be empty at this time.
42
-
43
- > If the optional `SUBSYSTEMS` argument is used, MPD will only send notifications when something changed in one of the specified subsytems.
44
-
45
- ---
46
- `noidle`
47
-
48
- >
49
-
50
- ---
51
- `status => "fetch_object`
52
-
53
- > Reports the current status of the player and the volume level.
54
-
55
- > * `volume`: 0-100
56
- * `repeat`: 0 or 1
57
- * `random`: 0 or 1
58
- * `single`: 0 or 1
59
- * `consume`: 0 or 1
60
- * `playlist`: 31-bit unsigned integer, the playlist version number
61
- * `playlistlength`: integer, the length of the playlist
62
- * `state`: play, stop, or pause
63
- * `song`: playlist song number of the current song stopped on or playing
64
- * `songid`: playlist songid of the current song stopped on or playing
65
- * `nextsong`: playlist song number of the next song to be played
66
- * `nextsongid`: playlist songid of the next song to be played
67
- * `time`: total time elapsed (of current playing/paused song)
68
- * `elapsed`: Total time elapsed within the current song, but with higher resolution.
69
- * `bitrate`: instantaneous bitrate in kbps
70
- * `xfade`: crossfade in seconds
71
- * `mixrampdb`: mixramp threshold in dB
72
- * `mixrampdelay`: mixrampdelay in seconds
73
- * `audio`: sampleRate:bits:channels
74
- * `updating_db`: job id
75
- * `error`: if there is an error, returns message here
76
-
77
- ---
78
- `stats => "fetch_object`
79
-
80
- > Displays statistics.
81
-
82
- > * `artists`: number of artists
83
- * `songs`: number of albums
84
- * `uptime`: daemon uptime in seconds
85
- * `db_playtime`: sum of all song times in the db
86
- * `db_update`: last db update in UNIX time
87
- * `playtime`: time length of music played
88
-
89
- ### Playback Option Commands ###
90
-
91
- ---
92
- `consume {STATE} => fetch_nothing`
93
-
94
- > Sets consume state to `STATE`, `STATE` should be 0 or 1. When consume is activated, each song played is removed from playlist.
95
-
96
- ---
97
- `crossfade {SECONDS} => fetch_nothing`
98
-
99
- > Sets crossfading between songs.
100
-
101
- ---
102
- `mixrampdb {deciBels} => fetch_nothing`
103
-
104
- > Sets the threshold at which songs will be overlapped. Like crossfading but doesn't fade the track volume, just overlaps. The songs need to have MixRamp tags added by an external tool. 0dB is the normalized maximum volume so use negative values, I prefer -17dB. In the absence of mixramp tags crossfading will be used. See http://sourceforge.net/projects/mixramp
105
-
106
- ---
107
- `mixrampdelay {SECONDS} => fetch_nothing`
108
-
109
- > Additional time subtracted from the overlap calculated by `mixrampdb`. A value of "nan" disables MixRamp overlapping and falls back to crossfading.
110
-
111
- ---
112
- `random {STATE} => fetch_nothing`
113
-
114
- > Sets random state to `STATE`, `STATE` should be 0 or 1.
115
-
116
- ---
117
- `repeat {STATE} => fetch_nothing`
118
-
119
- > Sets repeat state to `STATE`, `STATE` should be 0 or 1.
120
-
121
- ---
122
- `setvol {VOL} => fetch_nothing`
123
-
124
- > Sets volume to `VOL`, the range of volume is 0-100.
125
-
126
- ---
127
- `single {STATE} => fetch_nothing`
128
-
129
- > Sets single state to `STATE`, `STATE` should be 0 or 1. When single is activated, playback is stopped after current song, or song is repeated if the 'repeat' mode is enabled.
130
-
131
- ---
132
- `replay_gain_mode {MODE} => fetch_nothing`
133
-
134
- > Sets the replay gain mode. One of `off`, `track`, `album`, `auto`.
135
-
136
- > Changing the mode during playback may take several seconds, because the new settings does not affect the buffered data.
137
-
138
- > This command triggers the options idle event.
139
-
140
- ---
141
- `replay_gain_status => fetch_item`
142
-
143
- > Prints replay gain options. Currently, only the variable `replay_gain_mode` is returned.
144
-
145
- ---
146
- `volume {CHANGE} => fetch_nothing`
147
-
148
- > Changes volume by amount `CHANGE`.
149
-
150
- ### Playback Control Commands ###
151
-
152
- ---
153
- `next => fetch_nothing`
154
-
155
- > Plays next song in the playlist.
156
-
157
- ---
158
- `pause {PAUSE} => fetch_nothing`
159
-
160
- > Toggles pause/resumes playing, `PAUSE` is 0 or 1.
161
- > > **Note**. The use of pause command w/o the `PAUSE` argument is deprecated.
162
-
163
- ---
164
- `play [SONGPOS] => fetch_nothing`
165
-
166
- > Begins playing the playlist at song number `SONGPOS`.
167
-
168
- ---
169
- `playid [SONGID] => fetch_nothing`
170
-
171
- > Begins playing the playlist at song `SONGID`.
172
-
173
- ---
174
- `previous => fetch_nothing`
175
-
176
- > Plays previous song in the playlist.
177
-
178
- ---
179
- `seek {SONGPOS} {TIME} => fetch_nothing`
180
-
181
- > Seeks to the position `TIME` (in seconds) of entry `SONGPOS` in the playlist.
182
-
183
- ---
184
- `seekid {SONGID} {TIME} => fetch_nothing`
185
-
186
- > Seeks to the position `TIME` (in seconds) of song `SONGID`.
187
-
188
- ---
189
- `seekcur {TIME} => fetch_nothing`
190
-
191
- > Seeks to the position `TIME` within the current song. If prefixed by '+' or '-', then the time is relative to the current playing position.
192
-
193
- ---
194
- `stop => fetch_nothing`
195
-
196
- > Stops playing.
197
-
198
-
199
- ### Playlist Commands ###
200
-
201
- ---
202
- `add {URI} => fetch_nothing`
203
-
204
- > Adds the file `URI` to the playlist (directories add recursively). `URI` can also be a single file.
205
-
206
- ---
207
- `addid {URI} [POSITION] => fetch_item`
208
-
209
- > Adds a song to the playlist (non-recursive) and returns the song id.
210
-
211
- > `URI` is always a single file or URL.
212
-
213
- ---
214
- `clear => fetch_nothing`
215
-
216
- > Clears the current playlist.
217
-
218
- ---
219
- `delete [{POS} | {START:END}] => fetch_nothing`
220
-
221
- > Deletes a song from the playlist.
222
-
223
- ---
224
- `deleteid {SONGID} => fetch_nothing`
225
-
226
- > Deletes the song `SONGID` from the playlist
227
-
228
- ---
229
- `move [{FROM} | {START:END}] {TO} => fetch_nothing`
230
-
231
- > Moves the song at `FROM` or range of songs at `START:END` to `TO` in the playlist.
232
-
233
- ---
234
- `moveid {FROM} {TO} => fetch_nothing`
235
-
236
- > Moves the song with `FROM` (songid) to `TO` (playlist index) in the playlist. If `TO` is negative, it is relative to the current song in the playlist (if there is one).
237
-
238
- ---
239
- `playlist => fetch_playlist`
240
-
241
- > Displays the current playlist.
242
-
243
- > > **Note**: Do not use this, instead use `playlistinfo`.
244
-
245
- ---
246
- `playlistfind {TAG} {NEEDLE} => fetch_songs`
247
-
248
- > Finds songs in the current playlist with strict matching.
249
-
250
- ---
251
- `playlistid {SONGID} => fetch_songs`
252
-
253
- > Displays a list of songs in the playlist. `SONGID` is optional and specifies a single song to display info for.
254
-
255
- ---
256
- `playlistinfo [[SONGPOS] | [START:END]] => fetch_songs`
257
-
258
- > Displays a list of all songs in the playlist, or if the optional argument is given, displays information only for the song `SONGPOS` or the range of songs `START:END`
259
-
260
- ---
261
- `playlistsearch {TAG} {NEEDLE} => fetch_songs`
262
-
263
- > Searches case-sensitively for partial matches in the current playlist.
264
-
265
- ---
266
- `plchanges {VERSION} => fetch_songs`
267
-
268
- > Displays changed songs currently in the playlist since `VERSION`.
269
-
270
- > To detect songs that were deleted at the end of the playlist, use `playlistlength` returned by status command.
271
-
272
- ---
273
- `plchangesposid {VERSION} => fetch_changes`
274
-
275
- > Displays changed songs currently in the playlist since `VERSION`. This function only returns the position and the id of the changed song, not the complete metadata. This is more bandwidth efficient.
276
-
277
- > To detect songs that were deleted at the end of the playlist, use `playlistlength` returned by status command.
278
-
279
- ---
280
- `prio {PRIORITY} {START:END...} => fetch_nothing`
281
-
282
- > Set the priority of the specified songs. A higher priority means that it will be played first when "random" mode is enabled.
283
-
284
- > A priority is an integer between 0 and 255. The default priority of new songs is 0.
285
-
286
- ---
287
- `prioid {PRIORITY} {ID...} => fetch_nothing`
288
-
289
- > Same as `prio`, but address the songs with their id.
290
-
291
- ---
292
- `shuffle [START:END] => fetch_nothing`
293
-
294
- > Shuffles the current playlist. `START:END` is optional and specifies a range of songs.
295
-
296
- ---
297
- `swap {SONG1} {SONG2} => fetch_nothing`
298
-
299
- > Swaps the positions of `SONG1` and `SONG2`.
300
-
301
- ---
302
- `swapid {SONG1} {SONG2} => fetch_nothing`
303
-
304
- Swaps the positions of `SONG1` and `SONG2` (both song ids).
305
-
306
- ### Stored Playlist Commands ###
307
-
308
- Playlists are stored inside the configured playlist directory. They are addressed with their file name (without the directory and without the .m3u suffix).
309
-
310
- Some of the commands described in this section can be used to run playlist plugins instead of the hard-coded simple m3u parser. They can access playlists in the music directory (relative path including the suffix) or remote playlists (absolute URI with a supported scheme).
311
-
312
- ---
313
- `listplaylist {NAME} => fetch_list`
314
-
315
- > Lists the songs in the playlist. Playlist plugins are supported.
316
-
317
- ---
318
- `listplaylistinfo {NAME} => fetch_songs`
319
-
320
- > Lists the songs with metadata in the playlist. Playlist plugins are supported.
321
-
322
- ---
323
- `listplaylists => fetch_playlists`
324
-
325
- > Prints a list of the playlist directory.
326
-
327
- > After each playlist name the server sends its last modification time as attribute "Last-Modified" in ISO 8601 format. To avoid problems due to clock differences between clients and the server, clients should not compare this value with their local clock.
328
-
329
- ---
330
- `load {NAME} [START:END] => fetch_nothing`
331
-
332
- > Loads the playlist into the current queue. Playlist plugins are supported. A range may be specified to load only a part of the playlist.
333
-
334
- ---
335
- `playlistadd {NAME} {URI} => fetch_nothing`
336
-
337
- > Adds `URI` to the playlist `NAME.m3u`.
338
-
339
- > `NAME.m3u` will be created if it does not exist.
340
-
341
- ---
342
- `playlistclear {NAME} => fetch_nothing`
343
-
344
- > Clears the playlist `NAME.m3u`.
345
-
346
- ---
347
- `playlistdelete {NAME} {SONGPOS} => fetch_nothing`
348
-
349
- > Deletes `SONGPOS` from the playlist `NAME.m3u`.
350
-
351
- ---
352
- `playlistmove {NAME} {SONGID} {SONGPOS} => fetch_nothing`
353
-
354
- > Moves `SONGID` in the playlist `NAME.m3u` to the position `SONGPOS`.
355
-
356
- ---
357
- `rename {NAME} {NEW_NAME} => fetch_nothing`
358
-
359
- > Renames the playlist `NAME.m3u` to `NEW_NAME.m3u`.
360
-
361
- ---
362
- `rm {NAME} => fetch_nothing`
363
-
364
- > Removes the playlist `NAME.m3u` from the playlist directory.
365
-
366
- ---
367
- `save {NAME} => fetch_nothing`
368
-
369
- > Saves the current playlist to `NAME.m3u` in the playlist directory.
370
-
371
- ### Database Commands ###
372
-
373
- ---
374
- `count {TAG} {NEEDLE} => fetch_object`
375
-
376
- > Counts the number of songs and their total playtime in the db matching `TAG` exactly.
377
-
378
- ---
379
- `find {TYPE} {WHAT} [...] => fetch_songs`
380
-
381
- > Finds songs in the db that are exactly `WHAT`. `TYPE` can be any tag supported by MPD, or one of the two special parameters — file to search by full path (relative to database root), and any to match against all available tags. `WHAT` is what to find.
382
-
383
- ---
384
- `findadd {TYPE} {WHAT} [...] => fetch_nothing`
385
-
386
- > Finds songs in the db that are exactly `WHAT` and adds them to current playlist. Parameters have the same meaning as for find.
387
-
388
- ---
389
- `list {TYPE} [ARTIST] => fetch_list`
390
-
391
- > Lists all tags of the specified type. `TYPE` can be any tag supported by MPD or file.
392
-
393
- > `ARTIST` is an optional parameter when type is album, this specifies to list albums by an artist.
394
-
395
- ---
396
- `listall [URI] => fetch_database`
397
-
398
- > Lists all songs and directories in `URI`.
399
-
400
- ---
401
- `listallinfo [URI] => fetch_database`
402
-
403
- > Same as `listall`, except it also returns metadata info in the same format as `lsinfo`.
404
-
405
- ---
406
- `lsinfo [URI] => fetch_database`
407
-
408
- > Lists the contents of the directory `URI`.
409
-
410
- > When listing the root directory, this currently returns the list of stored playlists. This behavior is deprecated; use `listplaylists` instead.
411
-
412
- > Clients that are connected via UNIX domain socket may use this command to read the tags of an arbitrary local file (`URI` beginning with "file:///").
413
-
414
- ---
415
- `search {TYPE} {WHAT} [...] => fetch_songs`
416
-
417
- > Searches for any song that contains `WHAT`. Parameters have the same meaning as for find, except that search is not case sensitive.
418
-
419
- ---
420
- `searchadd {TYPE} {WHAT} [...] => fetch_nothing`
421
-
422
- > Searches for any song that contains `WHAT` in tag `TYPE` and adds them to current playlist.
423
-
424
- > Parameters have the same meaning as for `find`, except that search is not case sensitive.
425
-
426
- ---
427
- `searchaddpl {NAME} {TYPE} {WHAT} [...] => fetch_nothing`
428
-
429
- > Searches for any song that contains `WHAT` in tag `TYPE` and adds them to the playlist named `NAME`.
430
-
431
- > If a playlist by that name doesn't exist it is created.
432
-
433
- > Parameters have the same meaning as for find, except that search is not case sensitive.
434
-
435
- ---
436
- `update [URI] => fetch_item`
437
-
438
- > Updates the music database: find new files, remove deleted files, update modified files.
439
-
440
- > `URI` is a particular directory or song/file to update. If you do not specify it, everything is updated.
441
-
442
- > Prints "updating_db: JOBID" where JOBID is a positive number identifying the update job. You can read the current job id in the status response.
443
-
444
- ---
445
- `rescan [URI] => fetch_item`
446
-
447
- > Same as `update`, but also rescans unmodified files.
448
-
449
- ---
450
- `readcomments [URI] => fetch_object`
451
-
452
- > Read "comments" (i.e. key-value pairs) from the file specified by `URI`. This `URI` can be a path relative to the music directory or a URL in the form `file:///foo/bar.ogg`.
453
-
454
- > The response consists of lines in the form "KEY: VALUE". Comments with suspicious characters (e.g. newlines) are ignored silently.
455
-
456
- > The meaning of these depends on the codec, and not all decoder plugins support it. For example, on Ogg files, this lists the Vorbis comments.
457
-
458
- ### Sticker Commands ###
459
-
460
- "Stickers" are pieces of information attached to existing MPD objects (e.g. song files, directories, albums). Clients can create arbitrary name/value pairs. MPD itself does not assume any special meaning in them.
461
-
462
- The goal is to allow clients to share additional (possibly dynamic) information about songs, which is neither stored on the client (not available to other clients), nor stored in the song files (MPD has no write access).
463
-
464
- Client developers should create a standard for common sticker names, to ensure interoperability.
465
-
466
- Objects which may have stickers are addressed by their object type ("song" for song objects) and their URI (the path within the database for songs).
467
-
468
- ---
469
- `sticker get {TYPE} {URI} {NAME} => fetch_sticker`
470
-
471
- > Reads a sticker value for the specified object.
472
-
473
- ---
474
- `sticker set {TYPE} {URI} {NAME} {VALUE} => fetch_nothing`
475
-
476
- > Adds a sticker value to the specified object. If a sticker item with that name already exists, it is replaced.
477
-
478
- ---
479
- `sticker delete {TYPE} {URI} [NAME] => fetch_nothing`
480
-
481
- > Deletes a sticker value from the specified object. If you do not specify a sticker name, all sticker values are deleted.
482
-
483
- ---
484
- `sticker list {TYPE} {URI} => fetch_stickers`
485
-
486
- > Lists the stickers for the specified object.
487
-
488
- ---
489
- `sticker find {TYPE} {URI} {NAME} => fetch_songs`
490
-
491
- > Searches the sticker database for stickers with the specified name, below the specified directory (`URI`). For each matching song, it prints the URI and that one sticker's value.
492
-
493
- ### Connection Commands ###
494
-
495
- ---
496
- `close`
497
-
498
- > Closes the connection to MPD.
499
-
500
- ---
501
- `kill`
502
-
503
- > Kills MPD.
504
-
505
- ---
506
- `password {PASSWORD} => fetch_nothing`
507
-
508
- > This is used for authentication with the server. `PASSWORD` is simply the plaintext password.
509
-
510
- ---
511
- `ping => fetch_nothing`
512
-
513
- > Does nothing but return "OK".
514
-
515
- ## Audio Output Commands
516
-
517
- ---
518
- `disableoutput {ID} => fetch_nothing`
519
-
520
- > Turns an output off.
521
-
522
- ---
523
- `enableoutput {ID} => fetch_nothing`
524
-
525
- > Turns an output on.
526
-
527
- ---
528
- `outputs => fetch_outputs`
529
-
530
- > Shows information about all outputs.
531
-
532
- ---
533
- `toggleoutput {ID} => fetch_nothing`
534
-
535
- > Turns an output on or off, depending on the current state.
536
-
537
-
538
- ### Reflection Commands ###
539
-
540
- ---
541
- `config => fetch_item`
542
-
543
- > Dumps configuration values that may be interesting for the client. This command is only permitted to "local" clients (connected via UNIX domain socket).
544
-
545
- > The following response attributes are available:
546
-
547
- >
548
- | Name | Description |
549
- | ------------------ | ---------------------------------------- |
550
- | music_directory | The absolute path of the music directory |
551
-
552
- ---
553
- `commands => fetch_list`
554
-
555
- > Shows which commands the current user has access to.
556
-
557
- ---
558
- `notcommands => fetch_list`
559
-
560
- > Shows which commands the current user does not have access to.
561
-
562
- ---
563
- `tagtypes => fetch_list`
564
-
565
- > Shows a list of available song metadata.
566
-
567
- ---
568
- `urlhandlers => fetch_list`
569
-
570
- > Gets a list of available URL handlers.
571
-
572
- ---
573
- `decoders => fetch_plugins`
574
-
575
- > Print a list of decoder plugins, followed by their supported suffixes and MIME types.
576
-
577
- ### Client to client ###
578
-
579
- Clients can communicate with each others over "channels". A channel is created by a client subscribing to it. More than one client can be subscribed to a channel at a time; all of them will receive the messages which get sent to it.
580
-
581
- Each time a client subscribes or unsubscribes, the global idle event subscription is generated. In conjunction with the channels command, this may be used to auto-detect clients providing additional services.
582
-
583
- New messages are indicated by the message idle event.
584
-
585
- ---
586
- `subscribe {NAME} => fetch_nothing`
587
-
588
- > Subscribe to a channel. The channel is created if it does not exist already. The name may consist of alphanumeric ASCII characters plus underscore, dash, dot and colon.
589
-
590
- ---
591
- `unsubscribe {NAME} => fetch_nothing`
592
-
593
- > Unsubscribe from a channel.
594
-
595
- ---
596
- `channels => fetch_list`
597
-
598
- > Obtain a list of all channels. The response is a list of "channel:" lines.
599
-
600
- ---
601
- `readmessages => fetch_messages`
602
-
603
- > Reads messages for this client. The response is a list of "channel:" and "message:" lines.
604
-
605
- ---
606
- `sendmessage {CHANNEL} {TEXT} => fetch_nothing`
607
-
608
- > Send a message to the specified channel.
1
+ * [Status Commands](#status-commands)
2
+ * [Playback Option Commands](#playback-option-commands)
3
+ * [Playback Control Commands](#playback-control-commands)
4
+ * [Playlist Commands](#playlist-commands)
5
+ * [Stored Playlist Commands](#stored-playlist-commands)
6
+ * [Database Commands](#database-commands)
7
+ * [Mounts and neighbors](#mounts-and-neighbors)
8
+ * [Sticker Commands](#sticker-commands)
9
+ * [Connection Commands](#connection-commands)
10
+ * [Reflection Commands](#reflection-commands)
11
+ * [Client to client](#client-to-client)
12
+
13
+ ### Status Commands ###
14
+
15
+ ---
16
+ `clearerror => fetch_nothing`
17
+
18
+ > Clears the current error message in status (this is also accomplished by any command that starts playback).
19
+
20
+ ---
21
+ `currentsong => fetch_object`
22
+
23
+ > Displays the song info of the current song (same song that is identified in status).
24
+
25
+ ---
26
+ `idle [SUBSYSTEMS...] => fetch_list`
27
+
28
+ > Waits until there is a noteworthy change in one or more of MPD's subsystems. As soon as there is one, it lists all changed systems in a line in the format changed: `SUBSYSTEM`, where `SUBSYSTEM` is one of the following:
29
+
30
+ > * `database`: the song database has been modified after update.
31
+ * `update`: a database update has started or finished. If the database was modified during the update, the database event is also emitted.
32
+ * `stored_playlist`: a stored playlist has been modified, renamed, created or deleted
33
+ * `playlist`: the current playlist has been modified
34
+ * `player`: the player has been started, stopped or seeked
35
+ * `mixer`: the volume has been changed
36
+ * `output`: an audio output has been enabled or disabled
37
+ * `options`: options like repeat, random, crossfade, replay gain
38
+ * `sticker`: the sticker database has been modified
39
+ * `subscription`: a client has subscribed or unsubscribed to a channel
40
+ * `message`: a message was received on a channel this client is subscribed to; this event is only emitted when the queue is empty
41
+
42
+ > While a client is waiting for `idle` results, the server disables timeouts, allowing a client to wait for events as long as mpd runs. The `idle` command can be canceled by sending the command `noidle` (no other commands are allowed). MPD will then leave `idle` mode and print results immediately; might be empty at this time.
43
+
44
+ > If the optional `SUBSYSTEMS` argument is used, MPD will only send notifications when something changed in one of the specified subsytems.
45
+
46
+ ---
47
+ `noidle`
48
+
49
+ >
50
+
51
+ ---
52
+ `status => "fetch_object`
53
+
54
+ > Reports the current status of the player and the volume level.
55
+
56
+ > * `volume`: 0-100
57
+ * `repeat`: 0 or 1
58
+ * `random`: 0 or 1
59
+ * `single`: 0 or 1
60
+ * `consume`: 0 or 1
61
+ * `playlist`: 31-bit unsigned integer, the playlist version number
62
+ * `playlistlength`: integer, the length of the playlist
63
+ * `state`: play, stop, or pause
64
+ * `song`: playlist song number of the current song stopped on or playing
65
+ * `songid`: playlist songid of the current song stopped on or playing
66
+ * `nextsong`: playlist song number of the next song to be played
67
+ * `nextsongid`: playlist songid of the next song to be played
68
+ * `time`: total time elapsed (of current playing/paused song)
69
+ * `elapsed`: Total time elapsed within the current song, but with higher resolution.
70
+ * `bitrate`: instantaneous bitrate in kbps
71
+ * `xfade`: crossfade in seconds
72
+ * `mixrampdb`: mixramp threshold in dB
73
+ * `mixrampdelay`: mixrampdelay in seconds
74
+ * `audio`: sampleRate:bits:channels
75
+ * `updating_db`: job id
76
+ * `error`: if there is an error, returns message here
77
+
78
+ ---
79
+ `stats => "fetch_object`
80
+
81
+ > Displays statistics.
82
+
83
+ > * `artists`: number of artists
84
+ * `songs`: number of albums
85
+ * `uptime`: daemon uptime in seconds
86
+ * `db_playtime`: sum of all song times in the db
87
+ * `db_update`: last db update in UNIX time
88
+ * `playtime`: time length of music played
89
+
90
+ ### Playback Option Commands ###
91
+
92
+ ---
93
+ `consume {STATE} => fetch_nothing`
94
+
95
+ > Sets consume state to `STATE`, `STATE` should be 0 or 1. When consume is activated, each song played is removed from playlist.
96
+
97
+ ---
98
+ `crossfade {SECONDS} => fetch_nothing`
99
+
100
+ > Sets crossfading between songs.
101
+
102
+ ---
103
+ `mixrampdb {deciBels} => fetch_nothing`
104
+
105
+ > Sets the threshold at which songs will be overlapped. Like crossfading but doesn't fade the track volume, just overlaps. The songs need to have MixRamp tags added by an external tool. 0dB is the normalized maximum volume so use negative values, I prefer -17dB. In the absence of mixramp tags crossfading will be used. See http://sourceforge.net/projects/mixramp
106
+
107
+ ---
108
+ `mixrampdelay {SECONDS} => fetch_nothing`
109
+
110
+ > Additional time subtracted from the overlap calculated by `mixrampdb`. A value of "nan" disables MixRamp overlapping and falls back to crossfading.
111
+
112
+ ---
113
+ `random {STATE} => fetch_nothing`
114
+
115
+ > Sets random state to `STATE`, `STATE` should be 0 or 1.
116
+
117
+ ---
118
+ `repeat {STATE} => fetch_nothing`
119
+
120
+ > Sets repeat state to `STATE`, `STATE` should be 0 or 1.
121
+
122
+ ---
123
+ `setvol {VOL} => fetch_nothing`
124
+
125
+ > Sets volume to `VOL`, the range of volume is 0-100.
126
+
127
+ ---
128
+ `single {STATE} => fetch_nothing`
129
+
130
+ > Sets single state to `STATE`, `STATE` should be 0 or 1. When single is activated, playback is stopped after current song, or song is repeated if the 'repeat' mode is enabled.
131
+
132
+ ---
133
+ `replay_gain_mode {MODE} => fetch_nothing`
134
+
135
+ > Sets the replay gain mode. One of `off`, `track`, `album`, `auto`.
136
+
137
+ > Changing the mode during playback may take several seconds, because the new settings does not affect the buffered data.
138
+
139
+ > This command triggers the options idle event.
140
+
141
+ ---
142
+ `replay_gain_status => fetch_item`
143
+
144
+ > Prints replay gain options. Currently, only the variable `replay_gain_mode` is returned.
145
+
146
+ ---
147
+ `volume {CHANGE} => fetch_nothing`
148
+
149
+ > Changes volume by amount `CHANGE`.
150
+
151
+ ### Playback Control Commands ###
152
+
153
+ ---
154
+ `next => fetch_nothing`
155
+
156
+ > Plays next song in the playlist.
157
+
158
+ ---
159
+ `pause {PAUSE} => fetch_nothing`
160
+
161
+ > Toggles pause/resumes playing, `PAUSE` is 0 or 1.
162
+ > > **Note**. The use of pause command w/o the `PAUSE` argument is deprecated.
163
+
164
+ ---
165
+ `play [SONGPOS] => fetch_nothing`
166
+
167
+ > Begins playing the playlist at song number `SONGPOS`.
168
+
169
+ ---
170
+ `playid [SONGID] => fetch_nothing`
171
+
172
+ > Begins playing the playlist at song `SONGID`.
173
+
174
+ ---
175
+ `previous => fetch_nothing`
176
+
177
+ > Plays previous song in the playlist.
178
+
179
+ ---
180
+ `seek {SONGPOS} {TIME} => fetch_nothing`
181
+
182
+ > Seeks to the position `TIME` (in seconds) of entry `SONGPOS` in the playlist.
183
+
184
+ ---
185
+ `seekid {SONGID} {TIME} => fetch_nothing`
186
+
187
+ > Seeks to the position `TIME` (in seconds) of song `SONGID`.
188
+
189
+ ---
190
+ `seekcur {TIME} => fetch_nothing`
191
+
192
+ > Seeks to the position `TIME` within the current song. If prefixed by '+' or '-', then the time is relative to the current playing position.
193
+
194
+ ---
195
+ `stop => fetch_nothing`
196
+
197
+ > Stops playing.
198
+
199
+
200
+ ### Playlist Commands ###
201
+
202
+ ---
203
+ `add {URI} => fetch_nothing`
204
+
205
+ > Adds the file `URI` to the playlist (directories add recursively). `URI` can also be a single file.
206
+
207
+ ---
208
+ `addid {URI} [POSITION] => fetch_item`
209
+
210
+ > Adds a song to the playlist (non-recursive) and returns the song id.
211
+
212
+ > `URI` is always a single file or URL.
213
+
214
+ ---
215
+ `clear => fetch_nothing`
216
+
217
+ > Clears the current playlist.
218
+
219
+ ---
220
+ `delete [{POS} | {START:END}] => fetch_nothing`
221
+
222
+ > Deletes a song from the playlist.
223
+
224
+ ---
225
+ `deleteid {SONGID} => fetch_nothing`
226
+
227
+ > Deletes the song `SONGID` from the playlist
228
+
229
+ ---
230
+ `move [{FROM} | {START:END}] {TO} => fetch_nothing`
231
+
232
+ > Moves the song at `FROM` or range of songs at `START:END` to `TO` in the playlist.
233
+
234
+ ---
235
+ `moveid {FROM} {TO} => fetch_nothing`
236
+
237
+ > Moves the song with `FROM` (songid) to `TO` (playlist index) in the playlist. If `TO` is negative, it is relative to the current song in the playlist (if there is one).
238
+
239
+ ---
240
+ `playlist => fetch_playlist`
241
+
242
+ > Displays the current playlist.
243
+
244
+ > > **Note**: Do not use this, instead use `playlistinfo`.
245
+
246
+ ---
247
+ `playlistfind {TAG} {NEEDLE} => fetch_songs`
248
+
249
+ > Finds songs in the current playlist with strict matching.
250
+
251
+ ---
252
+ `playlistid {SONGID} => fetch_songs`
253
+
254
+ > Displays a list of songs in the playlist. `SONGID` is optional and specifies a single song to display info for.
255
+
256
+ ---
257
+ `playlistinfo [[SONGPOS] | [START:END]] => fetch_songs`
258
+
259
+ > Displays a list of all songs in the playlist, or if the optional argument is given, displays information only for the song `SONGPOS` or the range of songs `START:END`
260
+
261
+ ---
262
+ `playlistsearch {TAG} {NEEDLE} => fetch_songs`
263
+
264
+ > Searches case-sensitively for partial matches in the current playlist.
265
+
266
+ ---
267
+ `plchanges {VERSION} => fetch_songs`
268
+
269
+ > Displays changed songs currently in the playlist since `VERSION`.
270
+
271
+ > To detect songs that were deleted at the end of the playlist, use `playlistlength` returned by status command.
272
+
273
+ ---
274
+ `plchangesposid {VERSION} => fetch_changes`
275
+
276
+ > Displays changed songs currently in the playlist since `VERSION`. This function only returns the position and the id of the changed song, not the complete metadata. This is more bandwidth efficient.
277
+
278
+ > To detect songs that were deleted at the end of the playlist, use `playlistlength` returned by status command.
279
+
280
+ ---
281
+ `prio {PRIORITY} {START:END...} => fetch_nothing`
282
+
283
+ > Set the priority of the specified songs. A higher priority means that it will be played first when "random" mode is enabled.
284
+
285
+ > A priority is an integer between 0 and 255. The default priority of new songs is 0.
286
+
287
+ ---
288
+ `prioid {PRIORITY} {ID...} => fetch_nothing`
289
+
290
+ > Same as `prio`, but address the songs with their id.
291
+
292
+ ---
293
+ `rangeid {ID} {START:END} => fetch_nothing`
294
+
295
+ > Specifies the portion of the song that shall be played. `START` and `END` are offsets in seconds (fractional seconds allowed); both are optional. Omitting both (i.e. sending just ":") means "remove the range, play everything". A song that is currently playing cannot be manipulated this way.
296
+
297
+ ---
298
+ `shuffle [START:END] => fetch_nothing`
299
+
300
+ > Shuffles the current playlist. `START:END` is optional and specifies a range of songs.
301
+
302
+ ---
303
+ `swap {SONG1} {SONG2} => fetch_nothing`
304
+
305
+ > Swaps the positions of `SONG1` and `SONG2`.
306
+
307
+ ---
308
+ `swapid {SONG1} {SONG2} => fetch_nothing`
309
+
310
+ > Swaps the positions of `SONG1` and `SONG2` (both song ids).
311
+
312
+ ---
313
+ `addtagid {SONGID} {TAG} {VALUE} => fetch_nothing`
314
+
315
+ > Adds a `TAG` to the specified `SONGID`. Editing song tags is only possible for remote songs. This change is volatile: it may be overwritten by tags received from the server, and the data is gone when the song gets removed from the queue.
316
+
317
+ ---
318
+ `cleartagid {SONGID} [TAG] => fetch_nothing`
319
+
320
+ > Removes `TAG` from the specified `SONGID`. If `TAG` is not specified, then all tag values will be removed. Editing song tags is only possible for remote songs.
321
+
322
+ ### Stored Playlist Commands ###
323
+
324
+ Playlists are stored inside the configured playlist directory. They are addressed with their file name (without the directory and without the .m3u suffix).
325
+
326
+ Some of the commands described in this section can be used to run playlist plugins instead of the hard-coded simple m3u parser. They can access playlists in the music directory (relative path including the suffix) or remote playlists (absolute URI with a supported scheme).
327
+
328
+ ---
329
+ `listplaylist {NAME} => fetch_list`
330
+
331
+ > Lists the songs in the playlist. Playlist plugins are supported.
332
+
333
+ ---
334
+ `listplaylistinfo {NAME} => fetch_songs`
335
+
336
+ > Lists the songs with metadata in the playlist. Playlist plugins are supported.
337
+
338
+ ---
339
+ `listplaylists => fetch_playlists`
340
+
341
+ > Prints a list of the playlist directory.
342
+
343
+ > After each playlist name the server sends its last modification time as attribute "Last-Modified" in ISO 8601 format. To avoid problems due to clock differences between clients and the server, clients should not compare this value with their local clock.
344
+
345
+ ---
346
+ `load {NAME} [START:END] => fetch_nothing`
347
+
348
+ > Loads the playlist into the current queue. Playlist plugins are supported. A range may be specified to load only a part of the playlist.
349
+
350
+ ---
351
+ `playlistadd {NAME} {URI} => fetch_nothing`
352
+
353
+ > Adds `URI` to the playlist `NAME.m3u`.
354
+
355
+ > `NAME.m3u` will be created if it does not exist.
356
+
357
+ ---
358
+ `playlistclear {NAME} => fetch_nothing`
359
+
360
+ > Clears the playlist `NAME.m3u`.
361
+
362
+ ---
363
+ `playlistdelete {NAME} {SONGPOS} => fetch_nothing`
364
+
365
+ > Deletes `SONGPOS` from the playlist `NAME.m3u`.
366
+
367
+ ---
368
+ `playlistmove {NAME} {SONGID} {SONGPOS} => fetch_nothing`
369
+
370
+ > Moves `SONGID` in the playlist `NAME.m3u` to the position `SONGPOS`.
371
+
372
+ ---
373
+ `rename {NAME} {NEW_NAME} => fetch_nothing`
374
+
375
+ > Renames the playlist `NAME.m3u` to `NEW_NAME.m3u`.
376
+
377
+ ---
378
+ `rm {NAME} => fetch_nothing`
379
+
380
+ > Removes the playlist `NAME.m3u` from the playlist directory.
381
+
382
+ ---
383
+ `save {NAME} => fetch_nothing`
384
+
385
+ > Saves the current playlist to `NAME.m3u` in the playlist directory.
386
+
387
+ ### Database Commands ###
388
+
389
+ ---
390
+ `count {TAG} {NEEDLE} => fetch_object`
391
+
392
+ > Counts the number of songs and their total playtime in the db matching `TAG` exactly.
393
+
394
+ ---
395
+ `find {TYPE} {WHAT} [...] => fetch_songs`
396
+
397
+ > Finds songs in the db that are exactly `WHAT`. `TYPE` can be any tag supported by MPD, or one of the two special parameters — file to search by full path (relative to database root), and any to match against all available tags. `WHAT` is what to find.
398
+
399
+ ---
400
+ `findadd {TYPE} {WHAT} [...] => fetch_nothing`
401
+
402
+ > Finds songs in the db that are exactly `WHAT` and adds them to current playlist. Parameters have the same meaning as for find.
403
+
404
+ ---
405
+ `list {TYPE} [ARTIST] => fetch_list`
406
+
407
+ > Lists all tags of the specified type. `TYPE` can be any tag supported by MPD or file.
408
+
409
+ > `ARTIST` is an optional parameter when type is album, this specifies to list albums by an artist.
410
+
411
+ ---
412
+ `listall [URI] => fetch_database`
413
+
414
+ > Lists all songs and directories in `URI`.
415
+
416
+ ---
417
+ `listallinfo [URI] => fetch_database`
418
+
419
+ > Same as `listall`, except it also returns metadata info in the same format as `lsinfo`.
420
+
421
+ ---
422
+ `listfiles [URI] => fetch_database`
423
+
424
+ > Lists the contents of the directory `URI`, including files are not recognized by `MPD`. `URI` can be a path relative to the music directory or an `URI` understood by one of the storage plugins. The response contains at least one line for each directory entry with the prefix `"file: "` or `"directory: "`, and may be followed by file attributes such as `"Last-Modified"` and `"size"`.
425
+
426
+ > For example, `smb://SERVER` returns a list of all shares on the given SMB/CIFS server; `nfs://servername/path` obtains a directory listing from the NFS server.
427
+
428
+ ---
429
+ `lsinfo [URI] => fetch_database`
430
+
431
+ > Lists the contents of the directory `URI`.
432
+
433
+ > When listing the root directory, this currently returns the list of stored playlists. This behavior is deprecated; use `listplaylists` instead.
434
+
435
+ > Clients that are connected via UNIX domain socket may use this command to read the tags of an arbitrary local file (`URI` beginning with "file:///").
436
+
437
+ ---
438
+ `search {TYPE} {WHAT} [...] => fetch_songs`
439
+
440
+ > Searches for any song that contains `WHAT`. Parameters have the same meaning as for find, except that search is not case sensitive.
441
+
442
+ ---
443
+ `searchadd {TYPE} {WHAT} [...] => fetch_nothing`
444
+
445
+ > Searches for any song that contains `WHAT` in tag `TYPE` and adds them to current playlist.
446
+
447
+ > Parameters have the same meaning as for `find`, except that search is not case sensitive.
448
+
449
+ ---
450
+ `searchaddpl {NAME} {TYPE} {WHAT} [...] => fetch_nothing`
451
+
452
+ > Searches for any song that contains `WHAT` in tag `TYPE` and adds them to the playlist named `NAME`.
453
+
454
+ > If a playlist by that name doesn't exist it is created.
455
+
456
+ > Parameters have the same meaning as for find, except that search is not case sensitive.
457
+
458
+ ---
459
+ `update [URI] => fetch_item`
460
+
461
+ > Updates the music database: find new files, remove deleted files, update modified files.
462
+
463
+ > `URI` is a particular directory or song/file to update. If you do not specify it, everything is updated.
464
+
465
+ > Prints "updating_db: JOBID" where JOBID is a positive number identifying the update job. You can read the current job id in the status response.
466
+
467
+ ---
468
+ `rescan [URI] => fetch_item`
469
+
470
+ > Same as `update`, but also rescans unmodified files.
471
+
472
+ ---
473
+ `readcomments [URI] => fetch_object`
474
+
475
+ > Read "comments" (i.e. key-value pairs) from the file specified by `URI`. This `URI` can be a path relative to the music directory or a URL in the form `file:///foo/bar.ogg`.
476
+
477
+ > The response consists of lines in the form "KEY: VALUE". Comments with suspicious characters (e.g. newlines) are ignored silently.
478
+
479
+ > The meaning of these depends on the codec, and not all decoder plugins support it. For example, on Ogg files, this lists the Vorbis comments.
480
+
481
+ ### Mounts and neighbors ###
482
+
483
+ A "storage" provides access to files in the directory tree. The most basic storage plugin is a "local" storage plugin which accesses the local file system, and there are plugins to access NFS and SMB servers.
484
+
485
+ Multiple storages can be "mounted" together, similar to the `mount` command on many operationg systems, but without cooperation from the kernel. No superuser privileges are necessary, beause this mapping exists only inside the `MPD` process.
486
+
487
+ ---
488
+ `mount {PATH} {URI} => fetch_nothing`
489
+
490
+ > Mount the specified remote storage `URI` at the given `PATH`
491
+
492
+ ---
493
+ `unmount {PATH} => fetch_nothing`
494
+
495
+ > Unmounts the specified `PATH`
496
+
497
+ ---
498
+ `listmounts => fetch_mounts`
499
+
500
+ > Queries a list of all mounts. By default, this contains just the configured `music_directory`
501
+
502
+ ---
503
+ `listneighbors => fetch_neighbors`
504
+
505
+ > Queries a list of "neighbors" (e.g. accessible file servers on the local net). Items on that list may be used with the `mount` command.
506
+
507
+ ### Sticker Commands ###
508
+
509
+ "Stickers" are pieces of information attached to existing MPD objects (e.g. song files, directories, albums). Clients can create arbitrary name/value pairs. MPD itself does not assume any special meaning in them.
510
+
511
+ The goal is to allow clients to share additional (possibly dynamic) information about songs, which is neither stored on the client (not available to other clients), nor stored in the song files (MPD has no write access).
512
+
513
+ Client developers should create a standard for common sticker names, to ensure interoperability.
514
+
515
+ Objects which may have stickers are addressed by their object type ("song" for song objects) and their URI (the path within the database for songs).
516
+
517
+ ---
518
+ `sticker get {TYPE} {URI} {NAME} => fetch_sticker`
519
+
520
+ > Reads a sticker value for the specified object.
521
+
522
+ ---
523
+ `sticker set {TYPE} {URI} {NAME} {VALUE} => fetch_nothing`
524
+
525
+ > Adds a sticker value to the specified object. If a sticker item with that name already exists, it is replaced.
526
+
527
+ ---
528
+ `sticker delete {TYPE} {URI} [NAME] => fetch_nothing`
529
+
530
+ > Deletes a sticker value from the specified object. If you do not specify a sticker name, all sticker values are deleted.
531
+
532
+ ---
533
+ `sticker list {TYPE} {URI} => fetch_stickers`
534
+
535
+ > Lists the stickers for the specified object.
536
+
537
+ ---
538
+ `sticker find {TYPE} {URI} {NAME} => fetch_songs`
539
+
540
+ > Searches the sticker database for stickers with the specified name, below the specified directory (`URI`). For each matching song, it prints the URI and that one sticker's value.
541
+
542
+ ### Connection Commands ###
543
+
544
+ ---
545
+ `close`
546
+
547
+ > Closes the connection to MPD.
548
+
549
+ ---
550
+ `kill`
551
+
552
+ > Kills MPD.
553
+
554
+ ---
555
+ `password {PASSWORD} => fetch_nothing`
556
+
557
+ > This is used for authentication with the server. `PASSWORD` is simply the plaintext password.
558
+
559
+ ---
560
+ `ping => fetch_nothing`
561
+
562
+ > Does nothing but return "OK".
563
+
564
+ ## Audio Output Commands
565
+
566
+ ---
567
+ `disableoutput {ID} => fetch_nothing`
568
+
569
+ > Turns an output off.
570
+
571
+ ---
572
+ `enableoutput {ID} => fetch_nothing`
573
+
574
+ > Turns an output on.
575
+
576
+ ---
577
+ `outputs => fetch_outputs`
578
+
579
+ > Shows information about all outputs.
580
+
581
+ ---
582
+ `toggleoutput {ID} => fetch_nothing`
583
+
584
+ > Turns an output on or off, depending on the current state.
585
+
586
+
587
+ ### Reflection Commands ###
588
+
589
+ ---
590
+ `config => fetch_item`
591
+
592
+ > Dumps configuration values that may be interesting for the client. This command is only permitted to "local" clients (connected via UNIX domain socket).
593
+
594
+ > The following response attributes are available:
595
+
596
+ >
597
+ | Name | Description |
598
+ | ------------------ | ---------------------------------------- |
599
+ | music_directory | The absolute path of the music directory |
600
+
601
+ ---
602
+ `commands => fetch_list`
603
+
604
+ > Shows which commands the current user has access to.
605
+
606
+ ---
607
+ `notcommands => fetch_list`
608
+
609
+ > Shows which commands the current user does not have access to.
610
+
611
+ ---
612
+ `tagtypes => fetch_list`
613
+
614
+ > Shows a list of available song metadata.
615
+
616
+ ---
617
+ `urlhandlers => fetch_list`
618
+
619
+ > Gets a list of available URL handlers.
620
+
621
+ ---
622
+ `decoders => fetch_plugins`
623
+
624
+ > Print a list of decoder plugins, followed by their supported suffixes and MIME types.
625
+
626
+ ### Client to client ###
627
+
628
+ Clients can communicate with each others over "channels". A channel is created by a client subscribing to it. More than one client can be subscribed to a channel at a time; all of them will receive the messages which get sent to it.
629
+
630
+ Each time a client subscribes or unsubscribes, the global idle event subscription is generated. In conjunction with the channels command, this may be used to auto-detect clients providing additional services.
631
+
632
+ New messages are indicated by the message idle event.
633
+
634
+ ---
635
+ `subscribe {NAME} => fetch_nothing`
636
+
637
+ > Subscribe to a channel. The channel is created if it does not exist already. The name may consist of alphanumeric ASCII characters plus underscore, dash, dot and colon.
638
+
639
+ ---
640
+ `unsubscribe {NAME} => fetch_nothing`
641
+
642
+ > Unsubscribe from a channel.
643
+
644
+ ---
645
+ `channels => fetch_list`
646
+
647
+ > Obtain a list of all channels. The response is a list of "channel:" lines.
648
+
649
+ ---
650
+ `readmessages => fetch_messages`
651
+
652
+ > Reads messages for this client. The response is a list of "channel:" and "message:" lines.
653
+
654
+ ---
655
+ `sendmessage {CHANNEL} {TEXT} => fetch_nothing`
656
+
657
+ > Send a message to the specified channel.