@sigmaott/base-next 1.4.61 → 1.4.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -22,10 +22,15 @@ const { transcodeInput, packageInput } = useGetInputDetail({
|
|
|
22
22
|
|
|
23
23
|
const pidToProgramMap = computed(() => {
|
|
24
24
|
const map = new Map<string, any>()
|
|
25
|
-
const
|
|
25
|
+
const rawMaps: any[] = (isTranscode.value || isEvent.value)
|
|
26
26
|
? (transcodeInput.value?.programMaps ?? [])
|
|
27
27
|
: (packageInput.value?.programMaps ?? [])
|
|
28
28
|
|
|
29
|
+
// For package, programMaps can be nested (array of arrays per source) — flatten it
|
|
30
|
+
const programMaps: any[] = rawMaps.flatMap((item: any) =>
|
|
31
|
+
Array.isArray(item) ? item : [item],
|
|
32
|
+
).filter(Boolean)
|
|
33
|
+
|
|
29
34
|
for (const pm of programMaps) {
|
|
30
35
|
const rawPids = pm.pids || []
|
|
31
36
|
const pidList = Array.isArray(rawPids)
|