From 2165193490320950cdaaf1d62723003e9fd3f1da Mon Sep 17 00:00:00 2001 From: Martin Wagner Date: Fri, 28 Aug 2020 17:25:31 +0200 Subject: [PATCH] removed introspect interface from MPRISInterface --- bin/mpdevil | 119 ++-------------------------------------------------- 1 file changed, 3 insertions(+), 116 deletions(-) diff --git a/bin/mpdevil b/bin/mpdevil index a9a5504..47601a3 100755 --- a/bin/mpdevil +++ b/bin/mpdevil @@ -18,8 +18,6 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA -# MPRIS interface based on 'mpDris2' (master 19.03.2020) by Jean-Philippe Braun , Mantas Mikulėnas - import gi gi.require_version('Gtk', '3.0') gi.require_version('Notify', '0.7') @@ -42,7 +40,6 @@ import pkg_resources import dbus import dbus.service from dbus.mainloop.glib import DBusGMainLoop -import base64 NAME=pkg_resources.require('mpdevil')[0].project_name VERSION=pkg_resources.require('mpdevil')[0].version @@ -55,117 +52,11 @@ COVER_REGEX="^\.?(album|cover|folder|front).*\.(gif|jpeg|jpg|png)$" ######### class MPRISInterface(dbus.service.Object): # TODO emit Seeked if needed - __introspect_interface="org.freedesktop.DBus.Introspectable" + """ + based on 'mpDris2' (master 19.03.2020) by Jean-Philippe Braun , Mantas Mikulėnas + """ __prop_interface=dbus.PROPERTIES_IFACE - # python dbus bindings don't include annotations and properties - MPRIS2_INTROSPECTION=""" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - """ - # MPRIS allowed metadata tags allowed_tags={ 'mpris:trackid': dbus.ObjectPath, @@ -407,10 +298,6 @@ class MPRISInterface(dbus.service.Object): # TODO emit Seeked if needed __root_interface: __root_props, } - @dbus.service.method(__introspect_interface) - def Introspect(self): - return self.MPRIS2_INTROSPECTION - @dbus.service.signal(__prop_interface, signature="sa{sv}as") def PropertiesChanged(self, interface, changed_properties, invalidated_properties): pass