fix(mpris): guard GLib.Variant type check before get_type_string
feat(bluetooth): add rfkill soft-block check and BluetoothState enum
This commit is contained in:
2 files changed
+44
-2
No files matched your search
@@ -375,7 +375,7 @@ class PlayerService(Service):
|
||||
if v is not None:
|
||||
dur = (
|
||||
v.get_uint64() / 1_000_000
|
||||
if v.get_type_string() == "t"
|
||||
if isinstance(v, GLib.Variant) and v.get_type_string() == "t"
|
||||
else int(v) / 1_000_000
|
||||
)
|
||||
self._handle_artwork(metadata)
|
||||
|
||||
Reference in new issue
Block a user