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:
sankalp committed 2026-07-21 10:24:39 +05:45
1 parent 301ed9a717
commit 8ac26d6c26
2 files changed
+44 -2

No files matched your search

+1 -1
View File
@@ -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)