Added some mimetypes to the "SupportedMimeTypes" MPRIS property.

This commit is contained in:
The Wobbler 2025-04-19 18:55:01 +02:00
parent 0d131f80d5
commit 2da41160dc

View file

@ -14,7 +14,7 @@ class MPRISRoot(DBusInterface):
"Identity": ("s", "Wobuzz"),
"DesktopEntry": ("s", "wobuzz"),
"SupportedUriSchemes": ("as", ["file"]),
"SupportedMimeTypes": ("as", ["audio/mpeg"])
"SupportedMimeTypes": ("as", ["audio/mpeg", "audio/ogg", "audio/webm", "audio/flac"])
},)
return body
@ -55,4 +55,4 @@ class MPRISRoot(DBusInterface):
return "as", ["file"]
def SupportedMimeTypes(self, msg: Message):
return "as", ["audio/mpeg"]
return "as", ["audio/mpeg", "audio/ogg", "audio/webm", "audio/flac"]