{"action":"created","issue":{"url":"https://api.github.com/repos/Mic92/python-mpd2/issues/101","repository_url":"https://api.github.com/repos/Mic92/python-mpd2","labels_url":"https://api.github.com/repos/Mic92/python-mpd2/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/Mic92/python-mpd2/issues/101/comments","events_url":"https://api.github.com/repos/Mic92/python-mpd2/issues/101/events","html_url":"https://github.com/Mic92/python-mpd2/issues/101","id":373809176,"node_id":"MDU6SXNzdWUzNzM4MDkxNzY=","number":101,"title":"commands() returns commands which are not available","user":{"login":"InspectorMustache","id":23063397,"node_id":"MDQ6VXNlcjIzMDYzMzk3","avatar_url":"https://avatars2.githubusercontent.com/u/23063397?v=4","gravatar_id":"","url":"https://api.github.com/users/InspectorMustache","html_url":"https://github.com/InspectorMustache","followers_url":"https://api.github.com/users/InspectorMustache/followers","following_url":"https://api.github.com/users/InspectorMustache/following{/other_user}","gists_url":"https://api.github.com/users/InspectorMustache/gists{/gist_id}","starred_url":"https://api.github.com/users/InspectorMustache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InspectorMustache/subscriptions","organizations_url":"https://api.github.com/users/InspectorMustache/orgs","repos_url":"https://api.github.com/users/InspectorMustache/repos","events_url":"https://api.github.com/users/InspectorMustache/events{/privacy}","received_events_url":"https://api.github.com/users/InspectorMustache/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-25T07:29:46Z","updated_at":"2018-10-25T17:50:05Z","closed_at":null,"author_association":"NONE","body":"The documentation for commands() states that it returns \"commands the current user has access to.\" However, after initiating an MPDClient object, I get several commands which have not been bound yet or do not exist at all.\r\n```\r\nfrom mpd import MPDClient\r\nmpc = MPDClient()\r\nmpc.connect('127.0.0.1', port=6600)\r\n\r\nfor c in filter(lambda x: x not in dir(mpc), mpc.commands()):\r\n    print(c)\r\n```\r\n\r\nThis outputs:\r\n```\r\nsticker\r\nunmount\r\nvolume\r\n```"},"comment":{"url":"https://api.github.com/repos/Mic92/python-mpd2/issues/comments/433144790","html_url":"https://github.com/Mic92/python-mpd2/issues/101#issuecomment-433144790","issue_url":"https://api.github.com/repos/Mic92/python-mpd2/issues/101","id":433144790,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzE0NDc5MA==","user":{"login":"InspectorMustache","id":23063397,"node_id":"MDQ6VXNlcjIzMDYzMzk3","avatar_url":"https://avatars2.githubusercontent.com/u/23063397?v=4","gravatar_id":"","url":"https://api.github.com/users/InspectorMustache","html_url":"https://github.com/InspectorMustache","followers_url":"https://api.github.com/users/InspectorMustache/followers","following_url":"https://api.github.com/users/InspectorMustache/following{/other_user}","gists_url":"https://api.github.com/users/InspectorMustache/gists{/gist_id}","starred_url":"https://api.github.com/users/InspectorMustache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InspectorMustache/subscriptions","organizations_url":"https://api.github.com/users/InspectorMustache/orgs","repos_url":"https://api.github.com/users/InspectorMustache/repos","events_url":"https://api.github.com/users/InspectorMustache/events{/privacy}","received_events_url":"https://api.github.com/users/InspectorMustache/received_events","type":"User","site_admin":false},"created_at":"2018-10-25T17:50:05Z","updated_at":"2018-10-25T17:50:05Z","author_association":"NONE","body":"Using netcat, the server returns those three commands as well (sticker, unmount, volume).\r\nBut they don't appear when using dir.\r\n```\r\n>>> print(dir(mpc))\r\n['NOOP', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__'\r\n, '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__mod\r\nule__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '_\r\n_str__', '__subclasshook__', '__weakref__', '_command_list', '_connect_tcp', '_connect_unix', '_execute\r\n', '_fetch', '_hello', '_iterating', '_iterator_wrapper', '_parse_changes', '_parse_database', '_parse_\r\nidle', '_parse_item', '_parse_list', '_parse_messages', '_parse_mounts', '_parse_neighbors', '_parse_no\r\nthing', '_parse_object', '_parse_objects', '_parse_objects_direct', '_parse_outputs', '_parse_pair', '_\r\nparse_pairs', '_parse_playlist', '_parse_playlists', '_parse_plugins', '_parse_raw_stickers', '_parse_s\r\nongs', '_parse_sticker', '_parse_stickers', '_pending', '_read_command_list', '_read_line', '_read_line\r\ns', '_reset', '_rfile', '_send', '_sock', '_timeout', '_wfile', '_wrap_iterator', '_wrap_iterator_parse\r\nrs', '_write_command', '_write_line', 'add', 'add_command', 'addid', 'addtagid', 'channels', 'clear', '\r\nclearerror', 'cleartagid', 'close', 'command_list_end', 'command_list_ok_begin', 'commands', 'config', \r\n'connect', 'consume', 'count', 'crossfade', 'currentsong', 'decoders', 'delete', 'deleteid', 'disableou\r\ntput', 'disconnect', 'enableoutput', 'fetch_add', 'fetch_addid', 'fetch_addtagid', 'fetch_channels', 'f\r\netch_clear', 'fetch_clearerror', 'fetch_cleartagid', 'fetch_close', 'fetch_commands', 'fetch_config', '\r\nfetch_consume', 'fetch_count', 'fetch_crossfade', 'fetch_currentsong', 'fetch_decoders', 'fetch_delete'\r\n, 'fetch_deleteid', 'fetch_disableoutput', 'fetch_enableoutput', 'fetch_find', 'fetch_findadd', 'fetch_\r\nidle', 'fetch_kill', 'fetch_list', 'fetch_listall', 'fetch_listallinfo', 'fetch_listfiles', 'fetch_list\r\nmounts', 'fetch_listneighbors', 'fetch_listplaylist', 'fetch_listplaylistinfo', 'fetch_listplaylists', \r\n'fetch_load', 'fetch_lsinfo', 'fetch_mixrampdb', 'fetch_mixrampdelay', 'fetch_mount', 'fetch_move', 'fe\r\ntch_moveid', 'fetch_next', 'fetch_notcommands', 'fetch_outputs', 'fetch_outputvolume', 'fetch_password'\r\n, 'fetch_pause', 'fetch_ping', 'fetch_play', 'fetch_playid', 'fetch_playlist', 'fetch_playlistadd', 'fe\r\ntch_playlistclear', 'fetch_playlistdelete', 'fetch_playlistfind', 'fetch_playlistid', 'fetch_playlistin\r\nfo', 'fetch_playlistmove', 'fetch_playlistsearch', 'fetch_plchanges', 'fetch_plchangesposid', 'fetch_pr\r\nevious', 'fetch_prio', 'fetch_prioid', 'fetch_random', 'fetch_rangeid', 'fetch_readcomments', 'fetch_re\r\nadmessages', 'fetch_rename', 'fetch_repeat', 'fetch_replay_gain_mode', 'fetch_replay_gain_status', 'fet\r\nch_rescan', 'fetch_rm', 'fetch_save', 'fetch_search', 'fetch_searchadd', 'fetch_searchaddpl', 'fetch_se\r\nek', 'fetch_seekcur', 'fetch_seekid', 'fetch_sendmessage', 'fetch_setvol', 'fetch_shuffle', 'fetch_sing\r\nle', 'fetch_stats', 'fetch_status', 'fetch_sticker_delete', 'fetch_sticker_find', 'fetch_sticker_get', \r\n'fetch_sticker_list', 'fetch_sticker_set', 'fetch_stop', 'fetch_subscribe', 'fetch_swap', 'fetch_swapid\r\n', 'fetch_tagtypes', 'fetch_toggleoutput', 'fetch_umount', 'fetch_unsubscribe', 'fetch_update', 'fetch_\r\nurlhandlers', 'fileno', 'find', 'findadd', 'idle', 'idletimeout', 'iterate', 'kill', 'list', 'listall',\r\n 'listallinfo', 'listfiles', 'listmounts', 'listneighbors', 'listplaylist', 'listplaylistinfo', 'listpl\r\naylists', 'load', 'lsinfo', 'mixrampdb', 'mixrampdelay', 'mount', 'move', 'moveid', 'mpd_version', 'nex\r\nt', 'noidle', 'notcommands', 'outputs', 'outputvolume', 'password', 'pause', 'ping', 'play', 'playid', \r\n'playlist', 'playlistadd', 'playlistclear', 'playlistdelete', 'playlistfind', 'playlistid', 'playlistin\r\nfo', 'playlistmove', 'playlistsearch', 'plchanges', 'plchangesposid', 'previous', 'prio', 'prioid', 'ra\r\nndom', 'rangeid', 'readcomments', 'readmessages', 'remove_command', 'rename', 'repeat', 'replay_gain_mo\r\nde', 'replay_gain_status', 'rescan', 'rm', 'save', 'search', 'searchadd', 'searchaddpl', 'seek', 'seekc\r\nur', 'seekid', 'send_add', 'send_addid', 'send_addtagid', 'send_channels', 'send_clear', 'send_clearerr\r\nor', 'send_cleartagid', 'send_close', 'send_commands', 'send_config', 'send_consume', 'send_count', 'se\r\nnd_crossfade', 'send_currentsong', 'send_decoders', 'send_delete', 'send_deleteid', 'send_disableoutput\r\n', 'send_enableoutput', 'send_find', 'send_findadd', 'send_idle', 'send_kill', 'send_list', 'send_lista\r\nll', 'send_listallinfo', 'send_listfiles', 'send_listmounts', 'send_listneighbors', 'send_listplaylist'\r\n, 'send_listplaylistinfo', 'send_listplaylists', 'send_load', 'send_lsinfo', 'send_mixrampdb', 'send_mi\r\nxrampdelay', 'send_mount', 'send_move', 'send_moveid', 'send_next', 'send_notcommands', 'send_outputs',\r\n 'send_outputvolume', 'send_password', 'send_pause', 'send_ping', 'send_play', 'send_playid', 'send_pla\r\nylist', 'send_playlistadd', 'send_playlistclear', 'send_playlistdelete', 'send_playlistfind', 'send_pla\r\nylistid', 'send_playlistinfo', 'send_playlistmove', 'send_playlistsearch', 'send_plchanges', 'send_plch\r\nangesposid', 'send_previous', 'send_prio', 'send_prioid', 'send_random', 'send_rangeid', 'send_readcomm\r\nents', 'send_readmessages', 'send_rename', 'send_repeat', 'send_replay_gain_mode', 'send_replay_gain_st\r\natus', 'send_rescan', 'send_rm', 'send_save', 'send_search', 'send_searchadd', 'send_searchaddpl', 'sen\r\nd_seek', 'send_seekcur', 'send_seekid', 'send_sendmessage', 'send_setvol', 'send_shuffle', 'send_single\r\n', 'send_stats', 'send_status', 'send_sticker_delete', 'send_sticker_find', 'send_sticker_get', 'send_s\r\nticker_list', 'send_sticker_set', 'send_stop', 'send_subscribe', 'send_swap', 'send_swapid', 'send_tagt\r\nypes', 'send_toggleoutput', 'send_umount', 'send_unsubscribe', 'send_update', 'send_urlhandlers', 'send\r\nmessage', 'setvol', 'shuffle', 'single', 'stats', 'status', 'sticker_delete', 'sticker_find', 'sticker_\r\nget', 'sticker_list', 'sticker_set', 'stop', 'subscribe', 'swap', 'swapid', 'tagtypes', 'timeout', 'tog\r\ngleoutput', 'umount', 'unsubscribe', 'update', 'urlhandlers', 'use_unicode']\r\n```\r\nThanks for the lightning fast reply btw."}}
{"actor":{"display_login":"InspectorMustache"}}