# You should have received a copy of the GNU Lesser General Public License
# along with python-musicpd. If not, see <http://www.gnu.org/licenses/>.
+# pylint: disable=C0111
+
import socket
ERROR_PREFIX = "ACK "
SUCCESS = "OK"
NEXT = "list_OK"
-VERSION = '0.3.1b'
+VERSION = '0.4.0pr1'
class MPDError(Exception):
"searchaddpl": self._fetch_nothing,
"update": self._fetch_item,
"rescan": self._fetch_item,
+ "readcomments": self._fetch_object,
# Sticker Commands
"sticker get": self._fetch_item,
"sticker set": self._fetch_nothing,
# Audio Output Commands
"disableoutput": self._fetch_nothing,
"enableoutput": self._fetch_nothing,
+ "toggleoutput": self._fetch_nothing,
"outputs": self._fetch_outputs,
# Reflection Commands
"commands": self._fetch_list,
self.mpd_version = line[len(HELLO_PREFIX):].strip()
def _reset(self):
+ # pylint: disable=w0201
self.mpd_version = None
self._iterating = False
self._pending = []