eonpatapon / mpDris2

MPRIS V2.1 support for mpd
GNU General Public License v3.0
210 stars 46 forks source link

Pause/Play stops mpDris2 #100

Closed perfect7gentleman closed 6 years ago

perfect7gentleman commented 6 years ago
$ mpDris2
2017-12-31 20:09:17,521 mpDris2 INFO: Using file:///home/userxxx/.config/mpd/music as music library path.
2017-12-31 20:09:17,521 mpDris2 INFO: Mutagen not available, covers in music files will be ignored.
2017-12-31 20:09:17,523 mpDris2 WARNING: Failed to connect to GNOME Settings Daemon. Media keys won't work.
2017-12-31 20:09:17,523 base INFO: Calling MPD connect('127.0.0.1', '6600', timeout=None)
Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/gi/overrides/GLib.py", line 755, in <lambda>
    func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data)
  File "/usr/bin/mpDris2", line 466, in socket_callback
    data = fd._fetch_objects("changed")
  File "/usr/bin/mpDris2", line 856, in __getattr__
    raise AttributeError(attr)
AttributeError: _fetch_objects
Traceback (most recent call last):
  File "/usr/bin/mpDris2", line 453, in timer_callback
    self._update_properties(force=False)
  File "/usr/bin/mpDris2", line 728, in _update_properties
    if old_status['state'] != new_status['state']:
KeyError: 'state'
2017-12-31 20:12:53,173 mpDris2 WARNING: Disconnected
/usr/bin/mpDris2:388: Warning: Source ID 13 was not found when attempting to remove it
  GLib.source_remove(self._poll_id)
/usr/bin/mpDris2:391: Warning: Source ID 14 was not found when attempting to remove it
  GLib.source_remove(self._watch_id)
2017-12-31 20:12:53,177 base INFO: Calling MPD disconnect()
2017-12-31 20:12:53,177 base INFO: Calling MPD connect('127.0.0.1', '6600', timeout=None)
Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/gi/overrides/GLib.py", line 755, in <lambda>
    func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data)
  File "/usr/bin/mpDris2", line 466, in socket_callback
    data = fd._fetch_objects("changed")
  File "/usr/bin/mpDris2", line 856, in __getattr__
    raise AttributeError(attr)
AttributeError: _fetch_objects
2017-12-31 20:12:58,434 mpDris2 WARNING: Disconnected
/usr/bin/mpDris2:391: Warning: Source ID 19 was not found when attempting to remove it
  GLib.source_remove(self._watch_id)
2017-12-31 20:12:58,442 base INFO: Calling MPD disconnect()
2017-12-31 20:12:58,442 base INFO: Calling MPD connect('127.0.0.1', '6600', timeout=None)
Traceback (most recent call last):
  File "/usr/bin/mpDris2", line 449, in timer_callback
    was_idle = self.idle_leave()
  File "/usr/bin/mpDris2", line 438, in idle_leave
    self._fetch_object()
  File "/usr/bin/mpDris2", line 856, in __getattr__
    raise AttributeError(attr)
AttributeError: _fetch_object
Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/gi/overrides/GLib.py", line 755, in <lambda>
    func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data)
  File "/usr/bin/mpDris2", line 466, in socket_callback
    data = fd._fetch_objects("changed")
  File "/usr/bin/mpDris2", line 856, in __getattr__
    raise AttributeError(attr)
AttributeError: _fetch_objects
2017-12-31 20:13:33,183 mpDris2 INFO: Replaced by :1.388 (PID 9790)
2017-12-31 20:13:33,184 base INFO: Calling MPD disconnect()
grawity commented 6 years ago

What mpd version are you using, and what python-mpd version are you using?

perfect7gentleman commented 6 years ago
~ $ mpd --version
Music Player Daemon 0.20.13

Copyright (C) 2003-2007 Warren Dukes <warren.dukes@gmail.com>
Copyright 2008-2017 Max Kellermann <max.kellermann@gmail.com>
This is free software; see the source for copying conditions.  There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Database plugins:
 simple proxy

Storage plugins:
 local

Decoders plugins:
 [vorbis] ogg oga
 [oggflac] ogg oga
 [flac] flac
 [dsdiff] dff
 [dsf] dsf
 [wavpack] wv
 [ffmpeg] 16sv 3g2 3gp 4xm 8svx aa3 aac ac3 adx afc aif aifc aiff al alaw amr anim apc ape asf atrac au aud avi avm2 avs bap bfi c93 cak cin cmv cpk daud dct divx dts dv dvd dxa eac3 film flac flc fli fll flx flv g726 gsm gxf iss m1v m2v m2t m2ts m4a m4b m4v mad mj2 mjpeg mjpg mka mkv mlp mm mmf mov mp+ mp1 mp2 mp3 mp4 mpc mpeg mpg mpga mpp mpu mve mvi mxf nc nsv nut nuv oga ogm ogv ogx oma ogg omg opus psp pva qcp qt r3d ra ram rl2 rm rmvb roq rpl rvc shn smk snd sol son spx str swf tak tgi tgq tgv thp ts tsp tta xa xvid uv uv2 vb vid vob voc vp6 vmd wav webm wma wmv wsaud wsvga wv wve
 [pcm]

Filters:
 soxr

Tag plugins:
 id3tag

Output plugins:
 shout null alsa pulse

Encoder plugins:
 null vorbis flac

Archive plugins:
 [bz2] bz2
 [zzip] zip

Input plugins:
 file alsa archive curl ffmpeg

Playlist plugins:
 extm3u m3u pls flac cue embcue

Protocols:
 file:// http:// https:// gopher:// rtp:// rtsp:// rtmp:// rtmpt:// rtmps:// alsa://

Other features:
 epoll icu inotify tcp un

python-mpd2 - git-version built with Python3.6