MPRIS: Got everything necessary working. (I think.)
This commit is contained in:
parent
f23530628c
commit
1f149a25a3
10 changed files with 333 additions and 58 deletions
22
wobuzz/mpris/dbus_introspectable.py
Normal file
22
wobuzz/mpris/dbus_introspectable.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
from .utils import *
|
||||
|
||||
|
||||
class DBUSIntrospectable(DBusInterface):
|
||||
def __init__(self, server, interface: str):
|
||||
self.server = server
|
||||
self.interface = interface
|
||||
|
||||
file = open(server.app.utils.wobuzz_location + "/mpris/introspection.xml")
|
||||
self.introspection_xml = file.read()
|
||||
file.close()
|
||||
|
||||
def get_all(self):
|
||||
body = ({},)
|
||||
return body
|
||||
|
||||
# ======== Methods ========
|
||||
|
||||
def Introspect(self, msg):
|
||||
return new_method_return(msg, "s", (self.introspection_xml,))
|
Loading…
Add table
Add a link
Reference in a new issue