Fixhancement: support dispatcharr v24 API changes (#6690)
Some checks are pending
Docker CI / Docker Build & Push (push) Waiting to run
Lint / Linting Checks (push) Waiting to run
Release Drafter / Update Release Draft (push) Waiting to run
Release Drafter / Auto Label PR (push) Waiting to run
Tests / vitest (1) (push) Waiting to run
Tests / vitest (2) (push) Waiting to run
Tests / vitest (3) (push) Waiting to run
Tests / vitest (4) (push) Waiting to run

This commit is contained in:
shamoon
2026-05-17 19:23:52 -07:00
committed by GitHub
parent 9a4dea39b0
commit 9cef37aed6
2 changed files with 3 additions and 3 deletions

View File

@@ -50,10 +50,10 @@ export default function Component({ service }) {
streams?.channels && streams?.channels &&
streams.channels.map((activeStream) => ( streams.channels.map((activeStream) => (
<StreamEntry <StreamEntry
title={activeStream.stream_name} title={activeStream.channel_name ?? activeStream.stream_name}
clients={activeStream.clients.length} clients={activeStream.clients.length}
bitrate={activeStream.avg_bitrate} bitrate={activeStream.avg_bitrate}
key={activeStream.stream_name} key={activeStream.channel_name ?? activeStream.stream_name}
/> />
))} ))}
</> </>

View File

@@ -32,7 +32,7 @@ describe("widgets/dispatcharr/component", () => {
useWidgetAPI.mockReturnValueOnce({ data: [{}, {}, {}], error: undefined }).mockReturnValueOnce({ useWidgetAPI.mockReturnValueOnce({ data: [{}, {}, {}], error: undefined }).mockReturnValueOnce({
data: { data: {
count: 1, count: 1,
channels: [{ stream_name: "Stream1", clients: [{}, {}], avg_bitrate: "1000kbps" }], channels: [{ channel_name: "Stream1", clients: [{}, {}], avg_bitrate: "1000kbps" }],
}, },
error: undefined, error: undefined,
}); });