mirror of
https://github.com/gethomepage/homepage.git
synced 2026-05-18 11:27:33 +08:00
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
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:
@@ -50,10 +50,10 @@ export default function Component({ service }) {
|
||||
streams?.channels &&
|
||||
streams.channels.map((activeStream) => (
|
||||
<StreamEntry
|
||||
title={activeStream.stream_name}
|
||||
title={activeStream.channel_name ?? activeStream.stream_name}
|
||||
clients={activeStream.clients.length}
|
||||
bitrate={activeStream.avg_bitrate}
|
||||
key={activeStream.stream_name}
|
||||
key={activeStream.channel_name ?? activeStream.stream_name}
|
||||
/>
|
||||
))}
|
||||
</>
|
||||
|
||||
@@ -32,7 +32,7 @@ describe("widgets/dispatcharr/component", () => {
|
||||
useWidgetAPI.mockReturnValueOnce({ data: [{}, {}, {}], error: undefined }).mockReturnValueOnce({
|
||||
data: {
|
||||
count: 1,
|
||||
channels: [{ stream_name: "Stream1", clients: [{}, {}], avg_bitrate: "1000kbps" }],
|
||||
channels: [{ channel_name: "Stream1", clients: [{}, {}], avg_bitrate: "1000kbps" }],
|
||||
},
|
||||
error: undefined,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user