webmastak / gnome-shell-extensions-mediaplayer

A mediaplayer indicator for GNOME Shell 3.18+.
https://extensions.gnome.org/extension/55/media-player-indicator/
GNU General Public License v2.0
376 stars 106 forks source link

Extension doesn't update when using MPD only #256

Closed doronbehar closed 8 years ago

doronbehar commented 8 years ago

I think I've ran into the same problem as described here.

I don't see any of the track or album update. I ran mpDris2 -d from my terminal (debug-mode) and I could see mpDris2 notifyes me that it's updating the current song info etc.

2016-04-11 12:01:37,524 mpDris2 DEBUG: Left idle
2016-04-11 12:01:37,524 mpDris2 DEBUG: Sending command 'currentsong' (was idle? False)
2016-04-11 12:01:37,524 mpDris2 DEBUG: Sending command 'status' (was idle? False)
2016-04-11 12:01:37,524 mpDris2 DEBUG: _update_properties: current song = {'album': 'The Duke Ellington Song Book', 'title': 'Cottontail', 'track': '12', 'artist': 'Ella Fitzgerald', 'pos': '46', 'last-modified': '2016-02-15T20:43:49Z', 'disc': '1', 'file': 'Ella Fitzgerald/The Duke Ellington Song Book- CD1/12 - Cottontail.flac', 'time': '207', 'date': '1950', 'genre': 'Jazz', 'id': '47'}
2016-04-11 12:01:37,524 mpDris2 DEBUG: _update_properties: current status = {'songid': '47', 'playlistlength': '255', 'playlist': '2', 'repeat': '0', 'consume': '0', 'mixrampdb': '0.000000', 'random': '0', 'state': 'play', 'elapsed': '193.863', 'volume': '98', 'single': '0', 'nextsong': '47', 'time': '194:207', 'song': '46', 'audio': '44100:16:2', 'bitrate': '487', 'nextsongid': '48'}
2016-04-11 12:01:37,525 mpDris2 DEBUG: Entered idle
2016-04-11 12:01:50,565 mpDris2 DEBUG: Socket event <flags G_IO_IN of type GIOCondition> on fd <__main__.MPDWrapper object at 0x7f9057777c50>
2016-04-11 12:01:50,566 mpDris2 DEBUG: Idle events: [{'changed': 'player'}]
2016-04-11 12:01:50,566 mpDris2 DEBUG: Sending command 'currentsong' (was idle? False)
2016-04-11 12:01:50,567 mpDris2 DEBUG: Sending command 'status' (was idle? False)
2016-04-11 12:01:50,568 mpDris2 DEBUG: _update_properties: current song = {'album': 'The Duke Ellington Song Book', 'title': 'Do nothing till you hear from me', 'track': '13', 'artist': 'Ella Fitzgerald', 'pos': '47', 'last-modified': '2016-02-15T20:43:49Z', 'disc': '1', 'file': 'Ella Fitzgerald/The Duke Ellington Song Book- CD1/13 - Do nothing till you hear from me.flac', 'time': '460', 'date': '1950', 'genre': 'Jazz', 'id': '48'}
2016-04-11 12:01:50,568 mpDris2 DEBUG: _update_properties: current status = {'songid': '48', 'playlistlength': '255', 'playlist': '2', 'repeat': '0', 'consume': '0', 'mixrampdb': '0.000000', 'random': '0', 'state': 'play', 'elapsed': '0.000', 'volume': '98', 'single': '0', 'nextsong': '48', 'time': '0:460', 'song': '47', 'audio': '44100:16:2', 'bitrate': '343', 'nextsongid': '49'}
2016-04-11 12:01:50,569 mpDris2 DEBUG: Updated property: Metadata = dbus.Dictionary({'xesam:album': 'The Duke Ellington Song Book', 'xesam:title': 'Do nothing till you hear from me', 'xesam:trackNumber': 13, 'xesam:contentCreated': '1950', 'xesam:discNumber': 1, 'mpris:trackid': dbus.ObjectPath('/org/mpris/MediaPlayer2/Track/48'), 'mpris:length': dbus.Int64(460000000L), 'xesam:artist': ['Ella Fitzgerald'], 'xesam:url': 'file:///home/doron/music/Ella Fitzgerald/The Duke Ellington Song Book- CD1/13 - Do nothing till you hear from me.flac'}, signature=dbus.Signature('sv'))
2016-04-11 12:01:50,572 mpDris2 DEBUG: Entered idle

More Info:

Thank you very much @eonpatapon for this wonderful extension, It's beautiful.

doronbehar commented 8 years ago

I've installed the extension again but straight from git and it told me to install gnome-common. so I did and after reboot the extension worked perfectly.