X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=musicpd.py;h=5b2a37a847450f19d8bb5cab060d0b8a61f860cb;hb=3f8e5dcc2165484312d524f7ae803c3292dc7392;hp=3425a6f7f84fd9d37f3ffdd1a749d24b19dacbc0;hpb=fe692d6437980c2a691b03fc85a23230ef128c38;p=python-musicpd.git diff --git a/musicpd.py b/musicpd.py index 3425a6f..5b2a37a 100644 --- a/musicpd.py +++ b/musicpd.py @@ -225,6 +225,7 @@ class MPDClient: # Database Commands "albumart": self._fetch_composite, "count": self._fetch_object, + "getfingerprint": self._fetch_object, "find": self._fetch_songs, "findadd": self._fetch_nothing, "list": self._fetch_list, @@ -233,6 +234,7 @@ class MPDClient: "listfiles": self._fetch_database, "lsinfo": self._fetch_database, "readcomments": self._fetch_object, + "readpicture": self._fetch_composite, "search": self._fetch_songs, "searchadd": self._fetch_nothing, "searchaddpl": self._fetch_nothing, @@ -263,6 +265,8 @@ class MPDClient: "partition": self._fetch_nothing, "listpartitions": self._fetch_list, "newpartition": self._fetch_nothing, + "delpartition": self._fetch_nothing, + "moveoutput": self._fetch_nothing, # Audio Output Commands "disableoutput": self._fetch_nothing, "enableoutput": self._fetch_nothing, @@ -542,6 +546,10 @@ class MPDClient: obj[key] = value if key == 'binary': break + if not obj: + # If the song file was recognized, but there is no picture, the + # response is successful, but is otherwise empty. + return obj amount = int(obj['binary']) try: obj['data'] = self._read_binary(amount)