Linux evo.fastest-server.com 5.14.0-284.1101.el9.tuxcare.11.els11.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 14 13:30:35 UTC 2026 x86_64
LiteSpeed
Server IP : 103.249.112.113 & Your IP : 216.73.217.135
Domains : 988 Domain
User : tanishks
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
wireplumber /
scripts /
linking /
Delete
Unzip
Name
Size
Permission
Date
Action
find-audio-group-target.lua
2.71
KB
-rw-r--r--
2025-10-10 14:43
find-best-target.lua
3.97
KB
-rw-r--r--
2025-10-10 14:43
find-default-target.lua
1.65
KB
-rw-r--r--
2025-10-10 14:43
find-defined-target.lua
4.25
KB
-rw-r--r--
2025-10-10 14:43
find-filter-target.lua
2.9
KB
-rw-r--r--
2025-10-10 14:43
find-media-role-target.lua
1.92
KB
-rw-r--r--
2025-10-10 14:43
find-user-target.lua.example
925
B
-rw-r--r--
2025-10-10 14:43
get-filter-from-target.lua
3.51
KB
-rw-r--r--
2025-10-10 14:43
link-target.lua
5.23
KB
-rw-r--r--
2025-10-10 14:43
mpris-pause.lua
10.02
KB
-rw-r--r--
2025-10-10 14:43
prepare-link.lua
3.79
KB
-rw-r--r--
2025-10-10 14:43
rescan-media-role-links.lua
6.46
KB
-rw-r--r--
2025-10-10 14:43
rescan.lua
8.35
KB
-rw-r--r--
2025-10-10 14:43
Save
Rename
-- WirePlumber -- -- Copyright © 2024 Collabora Ltd. -- -- SPDX-License-Identifier: MIT -- -- Select the media role target cutils = require("common-utils") lutils = require("linking-utils") log = Log.open_topic("s-linking") SimpleEventHook { name = "linking/find-media-role-target", after = { "linking/find-defined-target", "linking/find-filter-target" }, before = "linking/prepare-link", interests = { EventInterest { Constraint { "event.type", "=", "select-target" }, }, }, execute = function (event) local _, om, si, si_props, _, target = lutils:unwrap_select_target_event (event) local target_direction = cutils.getTargetDirection (si_props) local media_role = si_props["media.role"] -- bypass the hook if the target is already picked up or if the role is not -- defined if target or media_role == nil then return end log:info (si, string.format ("handling item %d: %s (%s) role (%s)", si.id, tostring (si_props ["node.name"]), tostring (si_props ["node.id"]), media_role)) for si_target in om:iterate { type = "SiLinkable", Constraint { "item.node.direction", "=", target_direction }, Constraint { "device.intended-roles", "+" }, Constraint { "media.type", "=", si_props["media.type"] }, } do local roles_json = si_target.properties["device.intended-roles"] local roles_table = Json.Raw(roles_json):parse() for _, target_role in ipairs(roles_table) do if target_role == media_role then target = si_target break end end if target then break end end -- set target if target ~= nil then log:info(si, string.format("... media role target picked: %s (%s)", tostring(target.properties["node.name"]), tostring(target.properties["node.id"]))) event:set_data("target", target) end end }:register()