l/rescan: use parseBool() to interpret boolean property

The previous check was also working, but this is safer
This commit is contained in:
George Kiagiadakis 2024-06-26 16:19:32 +03:00
parent 9436dc7afe
commit 54d0f6fc7b

View file

@ -82,7 +82,7 @@ function unhandleLinkable (si, om)
out_flags.peer_id = nil
end
if silink.properties["is.media.role.link"] == "1" then
if cutils.parseBool (silink.properties["is.media.role.link"]) then
lutils.clearPriorityMediaRoleLink(silink)
end