MPRIS: Got everything necessary working. (I think.)

This commit is contained in:
The Wobbler 2025-04-18 19:35:13 +02:00
parent f23530628c
commit 1f149a25a3
10 changed files with 333 additions and 58 deletions

View 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,))