modified changelog and commands
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c334d63..5d84fef 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,11 @@
# MPDClient CHANGELOG
+### 0.0.5
+
+* Support for mount, umount, listmounts, listneighbors
+* Support for listfiles
+* Support for rangeid, addtagid, cleartagid
+
### 0.0.4
* Added support for readcomments, toggleoutput, volume
diff --git a/MPD_COMMANDS.md b/MPD_COMMANDS.md
index 6a0e8ec..c52fb30 100644
--- a/MPD_COMMANDS.md
+++ b/MPD_COMMANDS.md
@@ -1,608 +1,657 @@
-* [Status Commands](#status-commands)
-* [Playback Option Commands](#playback-option-commands)
-* [Playback Control Commands](#playback-control-commands)
-* [Playlist Commands](#playlist-commands)
-* [Stored Playlist Commands](#stored-playlist-commands)
-* [Database Commands](#database-commands)
-* [Sticker Commands](#sticker-commands)
-* [Connection Commands](#connection-commands)
-* [Reflection Commands](#reflection-commands)
-* [Client to client](#client-to-client)
-
-### Status Commands ###
-
----
-`clearerror => fetch_nothing`
-
-> Clears the current error message in status (this is also accomplished by any command that starts playback).
-
----
-`currentsong => fetch_object`
-
-> Displays the song info of the current song (same song that is identified in status).
-
----
-`idle [SUBSYSTEMS...] => fetch_list`
-
-> 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:
-
-> * `database`: the song database has been modified after update.
-* `update`: a database update has started or finished. If the database was modified during the update, the database event is also emitted.
-* `stored_playlist`: a stored playlist has been modified, renamed, created or deleted
-* `playlist`: the current playlist has been modified
-* `player`: the player has been started, stopped or seeked
-* `mixer`: the volume has been changed
-* `output`: an audio output has been enabled or disabled
-* `options`: options like repeat, random, crossfade, replay gain
-* `sticker`: the sticker database has been modified
-* `subscription`: a client has subscribed or unsubscribed to a channel
-* `message`: a message was received on a channel this client is subscribed to; this event is only emitted when the queue is empty
-
-> 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.
-
-> If the optional `SUBSYSTEMS` argument is used, MPD will only send notifications when something changed in one of the specified subsytems.
-
----
-`noidle`
-
->
-
----
-`status => "fetch_object`
-
-> Reports the current status of the player and the volume level.
-
-> * `volume`: 0-100
-* `repeat`: 0 or 1
-* `random`: 0 or 1
-* `single`: 0 or 1
-* `consume`: 0 or 1
-* `playlist`: 31-bit unsigned integer, the playlist version number
-* `playlistlength`: integer, the length of the playlist
-* `state`: play, stop, or pause
-* `song`: playlist song number of the current song stopped on or playing
-* `songid`: playlist songid of the current song stopped on or playing
-* `nextsong`: playlist song number of the next song to be played
-* `nextsongid`: playlist songid of the next song to be played
-* `time`: total time elapsed (of current playing/paused song)
-* `elapsed`: Total time elapsed within the current song, but with higher resolution.
-* `bitrate`: instantaneous bitrate in kbps
-* `xfade`: crossfade in seconds
-* `mixrampdb`: mixramp threshold in dB
-* `mixrampdelay`: mixrampdelay in seconds
-* `audio`: sampleRate:bits:channels
-* `updating_db`: job id
-* `error`: if there is an error, returns message here
-
----
-`stats => "fetch_object`
-
-> Displays statistics.
-
-> * `artists`: number of artists
-* `songs`: number of albums
-* `uptime`: daemon uptime in seconds
-* `db_playtime`: sum of all song times in the db
-* `db_update`: last db update in UNIX time
-* `playtime`: time length of music played
-
-### Playback Option Commands ###
-
----
-`consume {STATE} => fetch_nothing`
-
-> Sets consume state to `STATE`, `STATE` should be 0 or 1. When consume is activated, each song played is removed from playlist.
-
----
-`crossfade {SECONDS} => fetch_nothing`
-
-> Sets crossfading between songs.
-
----
-`mixrampdb {deciBels} => fetch_nothing`
-
-> 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
-
----
-`mixrampdelay {SECONDS} => fetch_nothing`
-
-> Additional time subtracted from the overlap calculated by `mixrampdb`. A value of "nan" disables MixRamp overlapping and falls back to crossfading.
-
----
-`random {STATE} => fetch_nothing`
-
-> Sets random state to `STATE`, `STATE` should be 0 or 1.
-
----
-`repeat {STATE} => fetch_nothing`
-
-> Sets repeat state to `STATE`, `STATE` should be 0 or 1.
-
----
-`setvol {VOL} => fetch_nothing`
-
-> Sets volume to `VOL`, the range of volume is 0-100.
-
----
-`single {STATE} => fetch_nothing`
-
-> 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.
-
----
-`replay_gain_mode {MODE} => fetch_nothing`
-
-> Sets the replay gain mode. One of `off`, `track`, `album`, `auto`.
-
-> Changing the mode during playback may take several seconds, because the new settings does not affect the buffered data.
-
-> This command triggers the options idle event.
-
----
-`replay_gain_status => fetch_item`
-
-> Prints replay gain options. Currently, only the variable `replay_gain_mode` is returned.
-
----
-`volume {CHANGE} => fetch_nothing`
-
-> Changes volume by amount `CHANGE`.
-
-### Playback Control Commands ###
-
----
-`next => fetch_nothing`
-
-> Plays next song in the playlist.
-
----
-`pause {PAUSE} => fetch_nothing`
-
-> Toggles pause/resumes playing, `PAUSE` is 0 or 1.
-> > **Note**. The use of pause command w/o the `PAUSE` argument is deprecated.
-
----
-`play [SONGPOS] => fetch_nothing`
-
-> Begins playing the playlist at song number `SONGPOS`.
-
----
-`playid [SONGID] => fetch_nothing`
-
-> Begins playing the playlist at song `SONGID`.
-
----
-`previous => fetch_nothing`
-
-> Plays previous song in the playlist.
-
----
-`seek {SONGPOS} {TIME} => fetch_nothing`
-
-> Seeks to the position `TIME` (in seconds) of entry `SONGPOS` in the playlist.
-
----
-`seekid {SONGID} {TIME} => fetch_nothing`
-
-> Seeks to the position `TIME` (in seconds) of song `SONGID`.
-
----
-`seekcur {TIME} => fetch_nothing`
-
-> Seeks to the position `TIME` within the current song. If prefixed by '+' or '-', then the time is relative to the current playing position.
-
----
-`stop => fetch_nothing`
-
-> Stops playing.
-
-
-### Playlist Commands ###
-
----
-`add {URI} => fetch_nothing`
-
-> Adds the file `URI` to the playlist (directories add recursively). `URI` can also be a single file.
-
----
-`addid {URI} [POSITION] => fetch_item`
-
-> Adds a song to the playlist (non-recursive) and returns the song id.
-
-> `URI` is always a single file or URL.
-
----
-`clear => fetch_nothing`
-
-> Clears the current playlist.
-
----
-`delete [{POS} | {START:END}] => fetch_nothing`
-
-> Deletes a song from the playlist.
-
----
-`deleteid {SONGID} => fetch_nothing`
-
-> Deletes the song `SONGID` from the playlist
-
----
-`move [{FROM} | {START:END}] {TO} => fetch_nothing`
-
-> Moves the song at `FROM` or range of songs at `START:END` to `TO` in the playlist.
-
----
-`moveid {FROM} {TO} => fetch_nothing`
-
-> 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).
-
----
-`playlist => fetch_playlist`
-
-> Displays the current playlist.
-
-> > **Note**: Do not use this, instead use `playlistinfo`.
-
----
-`playlistfind {TAG} {NEEDLE} => fetch_songs`
-
-> Finds songs in the current playlist with strict matching.
-
----
-`playlistid {SONGID} => fetch_songs`
-
-> Displays a list of songs in the playlist. `SONGID` is optional and specifies a single song to display info for.
-
----
-`playlistinfo [[SONGPOS] | [START:END]] => fetch_songs`
-
-> 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`
-
----
-`playlistsearch {TAG} {NEEDLE} => fetch_songs`
-
-> Searches case-sensitively for partial matches in the current playlist.
-
----
-`plchanges {VERSION} => fetch_songs`
-
-> Displays changed songs currently in the playlist since `VERSION`.
-
-> To detect songs that were deleted at the end of the playlist, use `playlistlength` returned by status command.
-
----
-`plchangesposid {VERSION} => fetch_changes`
-
-> 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.
-
-> To detect songs that were deleted at the end of the playlist, use `playlistlength` returned by status command.
-
----
-`prio {PRIORITY} {START:END...} => fetch_nothing`
-
-> Set the priority of the specified songs. A higher priority means that it will be played first when "random" mode is enabled.
-
-> A priority is an integer between 0 and 255. The default priority of new songs is 0.
-
----
-`prioid {PRIORITY} {ID...} => fetch_nothing`
-
-> Same as `prio`, but address the songs with their id.
-
----
-`shuffle [START:END] => fetch_nothing`
-
-> Shuffles the current playlist. `START:END` is optional and specifies a range of songs.
-
----
-`swap {SONG1} {SONG2} => fetch_nothing`
-
-> Swaps the positions of `SONG1` and `SONG2`.
-
----
-`swapid {SONG1} {SONG2} => fetch_nothing`
-
-Swaps the positions of `SONG1` and `SONG2` (both song ids).
-
-### Stored Playlist Commands ###
-
-Playlists are stored inside the configured playlist directory. They are addressed with their file name (without the directory and without the .m3u suffix).
-
-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).
-
----
-`listplaylist {NAME} => fetch_list`
-
-> Lists the songs in the playlist. Playlist plugins are supported.
-
----
-`listplaylistinfo {NAME} => fetch_songs`
-
-> Lists the songs with metadata in the playlist. Playlist plugins are supported.
-
----
-`listplaylists => fetch_playlists`
-
-> Prints a list of the playlist directory.
-
-> 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.
-
----
-`load {NAME} [START:END] => fetch_nothing`
-
-> Loads the playlist into the current queue. Playlist plugins are supported. A range may be specified to load only a part of the playlist.
-
----
-`playlistadd {NAME} {URI} => fetch_nothing`
-
-> Adds `URI` to the playlist `NAME.m3u`.
-
-> `NAME.m3u` will be created if it does not exist.
-
----
-`playlistclear {NAME} => fetch_nothing`
-
-> Clears the playlist `NAME.m3u`.
-
----
-`playlistdelete {NAME} {SONGPOS} => fetch_nothing`
-
-> Deletes `SONGPOS` from the playlist `NAME.m3u`.
-
----
-`playlistmove {NAME} {SONGID} {SONGPOS} => fetch_nothing`
-
-> Moves `SONGID` in the playlist `NAME.m3u` to the position `SONGPOS`.
-
----
-`rename {NAME} {NEW_NAME} => fetch_nothing`
-
-> Renames the playlist `NAME.m3u` to `NEW_NAME.m3u`.
-
----
-`rm {NAME} => fetch_nothing`
-
-> Removes the playlist `NAME.m3u` from the playlist directory.
-
----
-`save {NAME} => fetch_nothing`
-
-> Saves the current playlist to `NAME.m3u` in the playlist directory.
-
-### Database Commands ###
-
----
-`count {TAG} {NEEDLE} => fetch_object`
-
-> Counts the number of songs and their total playtime in the db matching `TAG` exactly.
-
----
-`find {TYPE} {WHAT} [...] => fetch_songs`
-
-> 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.
-
----
-`findadd {TYPE} {WHAT} [...] => fetch_nothing`
-
-> Finds songs in the db that are exactly `WHAT` and adds them to current playlist. Parameters have the same meaning as for find.
-
----
-`list {TYPE} [ARTIST] => fetch_list`
-
-> Lists all tags of the specified type. `TYPE` can be any tag supported by MPD or file.
-
-> `ARTIST` is an optional parameter when type is album, this specifies to list albums by an artist.
-
----
-`listall [URI] => fetch_database`
-
-> Lists all songs and directories in `URI`.
-
----
-`listallinfo [URI] => fetch_database`
-
-> Same as `listall`, except it also returns metadata info in the same format as `lsinfo`.
-
----
-`lsinfo [URI] => fetch_database`
-
-> Lists the contents of the directory `URI`.
-
-> When listing the root directory, this currently returns the list of stored playlists. This behavior is deprecated; use `listplaylists` instead.
-
-> 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:///").
-
----
-`search {TYPE} {WHAT} [...] => fetch_songs`
-
-> Searches for any song that contains `WHAT`. Parameters have the same meaning as for find, except that search is not case sensitive.
-
----
-`searchadd {TYPE} {WHAT} [...] => fetch_nothing`
-
-> Searches for any song that contains `WHAT` in tag `TYPE` and adds them to current playlist.
-
-> Parameters have the same meaning as for `find`, except that search is not case sensitive.
-
----
-`searchaddpl {NAME} {TYPE} {WHAT} [...] => fetch_nothing`
-
-> Searches for any song that contains `WHAT` in tag `TYPE` and adds them to the playlist named `NAME`.
-
-> If a playlist by that name doesn't exist it is created.
-
-> Parameters have the same meaning as for find, except that search is not case sensitive.
-
----
-`update [URI] => fetch_item`
-
-> Updates the music database: find new files, remove deleted files, update modified files.
-
-> `URI` is a particular directory or song/file to update. If you do not specify it, everything is updated.
-
-> 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.
-
----
-`rescan [URI] => fetch_item`
-
-> Same as `update`, but also rescans unmodified files.
-
----
-`readcomments [URI] => fetch_object`
-
-> 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`.
-
-> The response consists of lines in the form "KEY: VALUE". Comments with suspicious characters (e.g. newlines) are ignored silently.
-
-> 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.
-
-### Sticker Commands ###
-
-"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.
-
-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).
-
-Client developers should create a standard for common sticker names, to ensure interoperability.
-
-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).
-
----
-`sticker get {TYPE} {URI} {NAME} => fetch_sticker`
-
-> Reads a sticker value for the specified object.
-
----
-`sticker set {TYPE} {URI} {NAME} {VALUE} => fetch_nothing`
-
-> Adds a sticker value to the specified object. If a sticker item with that name already exists, it is replaced.
-
----
-`sticker delete {TYPE} {URI} [NAME] => fetch_nothing`
-
-> Deletes a sticker value from the specified object. If you do not specify a sticker name, all sticker values are deleted.
-
----
-`sticker list {TYPE} {URI} => fetch_stickers`
-
-> Lists the stickers for the specified object.
-
----
-`sticker find {TYPE} {URI} {NAME} => fetch_songs`
-
-> 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.
-
-### Connection Commands ###
-
----
-`close`
-
-> Closes the connection to MPD.
-
----
-`kill`
-
-> Kills MPD.
-
----
-`password {PASSWORD} => fetch_nothing`
-
-> This is used for authentication with the server. `PASSWORD` is simply the plaintext password.
-
----
-`ping => fetch_nothing`
-
-> Does nothing but return "OK".
-
-## Audio Output Commands
-
----
-`disableoutput {ID} => fetch_nothing`
-
-> Turns an output off.
-
----
-`enableoutput {ID} => fetch_nothing`
-
-> Turns an output on.
-
----
-`outputs => fetch_outputs`
-
-> Shows information about all outputs.
-
----
-`toggleoutput {ID} => fetch_nothing`
-
-> Turns an output on or off, depending on the current state.
-
-
-### Reflection Commands ###
-
----
-`config => fetch_item`
-
-> Dumps configuration values that may be interesting for the client. This command is only permitted to "local" clients (connected via UNIX domain socket).
-
-> The following response attributes are available:
-
->
-| Name | Description |
-| ------------------ | ---------------------------------------- |
-| music_directory | The absolute path of the music directory |
-
----
-`commands => fetch_list`
-
-> Shows which commands the current user has access to.
-
----
-`notcommands => fetch_list`
-
-> Shows which commands the current user does not have access to.
-
----
-`tagtypes => fetch_list`
-
-> Shows a list of available song metadata.
-
----
-`urlhandlers => fetch_list`
-
-> Gets a list of available URL handlers.
-
----
-`decoders => fetch_plugins`
-
-> Print a list of decoder plugins, followed by their supported suffixes and MIME types.
-
-### Client to client ###
-
-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.
-
-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.
-
-New messages are indicated by the message idle event.
-
----
-`subscribe {NAME} => fetch_nothing`
-
-> 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.
-
----
-`unsubscribe {NAME} => fetch_nothing`
-
-> Unsubscribe from a channel.
-
----
-`channels => fetch_list`
-
-> Obtain a list of all channels. The response is a list of "channel:" lines.
-
----
-`readmessages => fetch_messages`
-
-> Reads messages for this client. The response is a list of "channel:" and "message:" lines.
-
----
-`sendmessage {CHANNEL} {TEXT} => fetch_nothing`
-
-> Send a message to the specified channel.
+* [Status Commands](#status-commands)
+* [Playback Option Commands](#playback-option-commands)
+* [Playback Control Commands](#playback-control-commands)
+* [Playlist Commands](#playlist-commands)
+* [Stored Playlist Commands](#stored-playlist-commands)
+* [Database Commands](#database-commands)
+* [Mounts and neighbors](#mounts-and-neighbors)
+* [Sticker Commands](#sticker-commands)
+* [Connection Commands](#connection-commands)
+* [Reflection Commands](#reflection-commands)
+* [Client to client](#client-to-client)
+
+### Status Commands ###
+
+---
+`clearerror => fetch_nothing`
+
+> Clears the current error message in status (this is also accomplished by any command that starts playback).
+
+---
+`currentsong => fetch_object`
+
+> Displays the song info of the current song (same song that is identified in status).
+
+---
+`idle [SUBSYSTEMS...] => fetch_list`
+
+> 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:
+
+> * `database`: the song database has been modified after update.
+* `update`: a database update has started or finished. If the database was modified during the update, the database event is also emitted.
+* `stored_playlist`: a stored playlist has been modified, renamed, created or deleted
+* `playlist`: the current playlist has been modified
+* `player`: the player has been started, stopped or seeked
+* `mixer`: the volume has been changed
+* `output`: an audio output has been enabled or disabled
+* `options`: options like repeat, random, crossfade, replay gain
+* `sticker`: the sticker database has been modified
+* `subscription`: a client has subscribed or unsubscribed to a channel
+* `message`: a message was received on a channel this client is subscribed to; this event is only emitted when the queue is empty
+
+> 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.
+
+> If the optional `SUBSYSTEMS` argument is used, MPD will only send notifications when something changed in one of the specified subsytems.
+
+---
+`noidle`
+
+>
+
+---
+`status => "fetch_object`
+
+> Reports the current status of the player and the volume level.
+
+> * `volume`: 0-100
+* `repeat`: 0 or 1
+* `random`: 0 or 1
+* `single`: 0 or 1
+* `consume`: 0 or 1
+* `playlist`: 31-bit unsigned integer, the playlist version number
+* `playlistlength`: integer, the length of the playlist
+* `state`: play, stop, or pause
+* `song`: playlist song number of the current song stopped on or playing
+* `songid`: playlist songid of the current song stopped on or playing
+* `nextsong`: playlist song number of the next song to be played
+* `nextsongid`: playlist songid of the next song to be played
+* `time`: total time elapsed (of current playing/paused song)
+* `elapsed`: Total time elapsed within the current song, but with higher resolution.
+* `bitrate`: instantaneous bitrate in kbps
+* `xfade`: crossfade in seconds
+* `mixrampdb`: mixramp threshold in dB
+* `mixrampdelay`: mixrampdelay in seconds
+* `audio`: sampleRate:bits:channels
+* `updating_db`: job id
+* `error`: if there is an error, returns message here
+
+---
+`stats => "fetch_object`
+
+> Displays statistics.
+
+> * `artists`: number of artists
+* `songs`: number of albums
+* `uptime`: daemon uptime in seconds
+* `db_playtime`: sum of all song times in the db
+* `db_update`: last db update in UNIX time
+* `playtime`: time length of music played
+
+### Playback Option Commands ###
+
+---
+`consume {STATE} => fetch_nothing`
+
+> Sets consume state to `STATE`, `STATE` should be 0 or 1. When consume is activated, each song played is removed from playlist.
+
+---
+`crossfade {SECONDS} => fetch_nothing`
+
+> Sets crossfading between songs.
+
+---
+`mixrampdb {deciBels} => fetch_nothing`
+
+> 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
+
+---
+`mixrampdelay {SECONDS} => fetch_nothing`
+
+> Additional time subtracted from the overlap calculated by `mixrampdb`. A value of "nan" disables MixRamp overlapping and falls back to crossfading.
+
+---
+`random {STATE} => fetch_nothing`
+
+> Sets random state to `STATE`, `STATE` should be 0 or 1.
+
+---
+`repeat {STATE} => fetch_nothing`
+
+> Sets repeat state to `STATE`, `STATE` should be 0 or 1.
+
+---
+`setvol {VOL} => fetch_nothing`
+
+> Sets volume to `VOL`, the range of volume is 0-100.
+
+---
+`single {STATE} => fetch_nothing`
+
+> 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.
+
+---
+`replay_gain_mode {MODE} => fetch_nothing`
+
+> Sets the replay gain mode. One of `off`, `track`, `album`, `auto`.
+
+> Changing the mode during playback may take several seconds, because the new settings does not affect the buffered data.
+
+> This command triggers the options idle event.
+
+---
+`replay_gain_status => fetch_item`
+
+> Prints replay gain options. Currently, only the variable `replay_gain_mode` is returned.
+
+---
+`volume {CHANGE} => fetch_nothing`
+
+> Changes volume by amount `CHANGE`.
+
+### Playback Control Commands ###
+
+---
+`next => fetch_nothing`
+
+> Plays next song in the playlist.
+
+---
+`pause {PAUSE} => fetch_nothing`
+
+> Toggles pause/resumes playing, `PAUSE` is 0 or 1.
+> > **Note**. The use of pause command w/o the `PAUSE` argument is deprecated.
+
+---
+`play [SONGPOS] => fetch_nothing`
+
+> Begins playing the playlist at song number `SONGPOS`.
+
+---
+`playid [SONGID] => fetch_nothing`
+
+> Begins playing the playlist at song `SONGID`.
+
+---
+`previous => fetch_nothing`
+
+> Plays previous song in the playlist.
+
+---
+`seek {SONGPOS} {TIME} => fetch_nothing`
+
+> Seeks to the position `TIME` (in seconds) of entry `SONGPOS` in the playlist.
+
+---
+`seekid {SONGID} {TIME} => fetch_nothing`
+
+> Seeks to the position `TIME` (in seconds) of song `SONGID`.
+
+---
+`seekcur {TIME} => fetch_nothing`
+
+> Seeks to the position `TIME` within the current song. If prefixed by '+' or '-', then the time is relative to the current playing position.
+
+---
+`stop => fetch_nothing`
+
+> Stops playing.
+
+
+### Playlist Commands ###
+
+---
+`add {URI} => fetch_nothing`
+
+> Adds the file `URI` to the playlist (directories add recursively). `URI` can also be a single file.
+
+---
+`addid {URI} [POSITION] => fetch_item`
+
+> Adds a song to the playlist (non-recursive) and returns the song id.
+
+> `URI` is always a single file or URL.
+
+---
+`clear => fetch_nothing`
+
+> Clears the current playlist.
+
+---
+`delete [{POS} | {START:END}] => fetch_nothing`
+
+> Deletes a song from the playlist.
+
+---
+`deleteid {SONGID} => fetch_nothing`
+
+> Deletes the song `SONGID` from the playlist
+
+---
+`move [{FROM} | {START:END}] {TO} => fetch_nothing`
+
+> Moves the song at `FROM` or range of songs at `START:END` to `TO` in the playlist.
+
+---
+`moveid {FROM} {TO} => fetch_nothing`
+
+> 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).
+
+---
+`playlist => fetch_playlist`
+
+> Displays the current playlist.
+
+> > **Note**: Do not use this, instead use `playlistinfo`.
+
+---
+`playlistfind {TAG} {NEEDLE} => fetch_songs`
+
+> Finds songs in the current playlist with strict matching.
+
+---
+`playlistid {SONGID} => fetch_songs`
+
+> Displays a list of songs in the playlist. `SONGID` is optional and specifies a single song to display info for.
+
+---
+`playlistinfo [[SONGPOS] | [START:END]] => fetch_songs`
+
+> 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`
+
+---
+`playlistsearch {TAG} {NEEDLE} => fetch_songs`
+
+> Searches case-sensitively for partial matches in the current playlist.
+
+---
+`plchanges {VERSION} => fetch_songs`
+
+> Displays changed songs currently in the playlist since `VERSION`.
+
+> To detect songs that were deleted at the end of the playlist, use `playlistlength` returned by status command.
+
+---
+`plchangesposid {VERSION} => fetch_changes`
+
+> 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.
+
+> To detect songs that were deleted at the end of the playlist, use `playlistlength` returned by status command.
+
+---
+`prio {PRIORITY} {START:END...} => fetch_nothing`
+
+> Set the priority of the specified songs. A higher priority means that it will be played first when "random" mode is enabled.
+
+> A priority is an integer between 0 and 255. The default priority of new songs is 0.
+
+---
+`prioid {PRIORITY} {ID...} => fetch_nothing`
+
+> Same as `prio`, but address the songs with their id.
+
+---
+`rangeid {ID} {START:END} => fetch_nothing`
+
+> 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.
+
+---
+`shuffle [START:END] => fetch_nothing`
+
+> Shuffles the current playlist. `START:END` is optional and specifies a range of songs.
+
+---
+`swap {SONG1} {SONG2} => fetch_nothing`
+
+> Swaps the positions of `SONG1` and `SONG2`.
+
+---
+`swapid {SONG1} {SONG2} => fetch_nothing`
+
+> Swaps the positions of `SONG1` and `SONG2` (both song ids).
+
+---
+`addtagid {SONGID} {TAG} {VALUE} => fetch_nothing`
+
+> 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.
+
+---
+`cleartagid {SONGID} [TAG] => fetch_nothing`
+
+> 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.
+
+### Stored Playlist Commands ###
+
+Playlists are stored inside the configured playlist directory. They are addressed with their file name (without the directory and without the .m3u suffix).
+
+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).
+
+---
+`listplaylist {NAME} => fetch_list`
+
+> Lists the songs in the playlist. Playlist plugins are supported.
+
+---
+`listplaylistinfo {NAME} => fetch_songs`
+
+> Lists the songs with metadata in the playlist. Playlist plugins are supported.
+
+---
+`listplaylists => fetch_playlists`
+
+> Prints a list of the playlist directory.
+
+> 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.
+
+---
+`load {NAME} [START:END] => fetch_nothing`
+
+> Loads the playlist into the current queue. Playlist plugins are supported. A range may be specified to load only a part of the playlist.
+
+---
+`playlistadd {NAME} {URI} => fetch_nothing`
+
+> Adds `URI` to the playlist `NAME.m3u`.
+
+> `NAME.m3u` will be created if it does not exist.
+
+---
+`playlistclear {NAME} => fetch_nothing`
+
+> Clears the playlist `NAME.m3u`.
+
+---
+`playlistdelete {NAME} {SONGPOS} => fetch_nothing`
+
+> Deletes `SONGPOS` from the playlist `NAME.m3u`.
+
+---
+`playlistmove {NAME} {SONGID} {SONGPOS} => fetch_nothing`
+
+> Moves `SONGID` in the playlist `NAME.m3u` to the position `SONGPOS`.
+
+---
+`rename {NAME} {NEW_NAME} => fetch_nothing`
+
+> Renames the playlist `NAME.m3u` to `NEW_NAME.m3u`.
+
+---
+`rm {NAME} => fetch_nothing`
+
+> Removes the playlist `NAME.m3u` from the playlist directory.
+
+---
+`save {NAME} => fetch_nothing`
+
+> Saves the current playlist to `NAME.m3u` in the playlist directory.
+
+### Database Commands ###
+
+---
+`count {TAG} {NEEDLE} => fetch_object`
+
+> Counts the number of songs and their total playtime in the db matching `TAG` exactly.
+
+---
+`find {TYPE} {WHAT} [...] => fetch_songs`
+
+> 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.
+
+---
+`findadd {TYPE} {WHAT} [...] => fetch_nothing`
+
+> Finds songs in the db that are exactly `WHAT` and adds them to current playlist. Parameters have the same meaning as for find.
+
+---
+`list {TYPE} [ARTIST] => fetch_list`
+
+> Lists all tags of the specified type. `TYPE` can be any tag supported by MPD or file.
+
+> `ARTIST` is an optional parameter when type is album, this specifies to list albums by an artist.
+
+---
+`listall [URI] => fetch_database`
+
+> Lists all songs and directories in `URI`.
+
+---
+`listallinfo [URI] => fetch_database`
+
+> Same as `listall`, except it also returns metadata info in the same format as `lsinfo`.
+
+---
+`listfiles [URI]`
+
+> 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"`.
+
+> 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.
+
+---
+`lsinfo [URI] => fetch_database`
+
+> Lists the contents of the directory `URI`.
+
+> When listing the root directory, this currently returns the list of stored playlists. This behavior is deprecated; use `listplaylists` instead.
+
+> 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:///").
+
+---
+`search {TYPE} {WHAT} [...] => fetch_songs`
+
+> Searches for any song that contains `WHAT`. Parameters have the same meaning as for find, except that search is not case sensitive.
+
+---
+`searchadd {TYPE} {WHAT} [...] => fetch_nothing`
+
+> Searches for any song that contains `WHAT` in tag `TYPE` and adds them to current playlist.
+
+> Parameters have the same meaning as for `find`, except that search is not case sensitive.
+
+---
+`searchaddpl {NAME} {TYPE} {WHAT} [...] => fetch_nothing`
+
+> Searches for any song that contains `WHAT` in tag `TYPE` and adds them to the playlist named `NAME`.
+
+> If a playlist by that name doesn't exist it is created.
+
+> Parameters have the same meaning as for find, except that search is not case sensitive.
+
+---
+`update [URI] => fetch_item`
+
+> Updates the music database: find new files, remove deleted files, update modified files.
+
+> `URI` is a particular directory or song/file to update. If you do not specify it, everything is updated.
+
+> 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.
+
+---
+`rescan [URI] => fetch_item`
+
+> Same as `update`, but also rescans unmodified files.
+
+---
+`readcomments [URI] => fetch_object`
+
+> 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`.
+
+> The response consists of lines in the form "KEY: VALUE". Comments with suspicious characters (e.g. newlines) are ignored silently.
+
+> 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.
+
+### Mounts and neighbors ###
+
+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.
+
+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.
+
+---
+`mount {PATH} {URI} => fetch_nothing`
+
+> Mount the specified remote storage `URI` at the given `PATH`
+
+---
+`unmount {PATH} => fetch_nothing`
+
+> Unmounts the specified `PATH`
+
+---
+`listmounts => fetch_mounts`
+
+> Queries a list of all mounts. By default, this contains just the configured `music_directory`
+
+---
+`listneighbors => fetch_neighbors`
+
+> 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.
+
+### Sticker Commands ###
+
+"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.
+
+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).
+
+Client developers should create a standard for common sticker names, to ensure interoperability.
+
+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).
+
+---
+`sticker get {TYPE} {URI} {NAME} => fetch_sticker`
+
+> Reads a sticker value for the specified object.
+
+---
+`sticker set {TYPE} {URI} {NAME} {VALUE} => fetch_nothing`
+
+> Adds a sticker value to the specified object. If a sticker item with that name already exists, it is replaced.
+
+---
+`sticker delete {TYPE} {URI} [NAME] => fetch_nothing`
+
+> Deletes a sticker value from the specified object. If you do not specify a sticker name, all sticker values are deleted.
+
+---
+`sticker list {TYPE} {URI} => fetch_stickers`
+
+> Lists the stickers for the specified object.
+
+---
+`sticker find {TYPE} {URI} {NAME} => fetch_songs`
+
+> 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.
+
+### Connection Commands ###
+
+---
+`close`
+
+> Closes the connection to MPD.
+
+---
+`kill`
+
+> Kills MPD.
+
+---
+`password {PASSWORD} => fetch_nothing`
+
+> This is used for authentication with the server. `PASSWORD` is simply the plaintext password.
+
+---
+`ping => fetch_nothing`
+
+> Does nothing but return "OK".
+
+## Audio Output Commands
+
+---
+`disableoutput {ID} => fetch_nothing`
+
+> Turns an output off.
+
+---
+`enableoutput {ID} => fetch_nothing`
+
+> Turns an output on.
+
+---
+`outputs => fetch_outputs`
+
+> Shows information about all outputs.
+
+---
+`toggleoutput {ID} => fetch_nothing`
+
+> Turns an output on or off, depending on the current state.
+
+
+### Reflection Commands ###
+
+---
+`config => fetch_item`
+
+> Dumps configuration values that may be interesting for the client. This command is only permitted to "local" clients (connected via UNIX domain socket).
+
+> The following response attributes are available:
+
+>
+| Name | Description |
+| ------------------ | ---------------------------------------- |
+| music_directory | The absolute path of the music directory |
+
+---
+`commands => fetch_list`
+
+> Shows which commands the current user has access to.
+
+---
+`notcommands => fetch_list`
+
+> Shows which commands the current user does not have access to.
+
+---
+`tagtypes => fetch_list`
+
+> Shows a list of available song metadata.
+
+---
+`urlhandlers => fetch_list`
+
+> Gets a list of available URL handlers.
+
+---
+`decoders => fetch_plugins`
+
+> Print a list of decoder plugins, followed by their supported suffixes and MIME types.
+
+### Client to client ###
+
+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.
+
+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.
+
+New messages are indicated by the message idle event.
+
+---
+`subscribe {NAME} => fetch_nothing`
+
+> 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.
+
+---
+`unsubscribe {NAME} => fetch_nothing`
+
+> Unsubscribe from a channel.
+
+---
+`channels => fetch_list`
+
+> Obtain a list of all channels. The response is a list of "channel:" lines.
+
+---
+`readmessages => fetch_messages`
+
+> Reads messages for this client. The response is a list of "channel:" and "message:" lines.
+
+---
+`sendmessage {CHANNEL} {TEXT} => fetch_nothing`
+
+> Send a message to the specified channel.