MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / createChannelFromStream

Method createChannelFromStream

frontend/src/api.js:1002–1020  ·  view source on GitHub ↗
(values)

Source from the content-addressed store, hash-verified

1000 }
1001
1002 static async createChannelFromStream(values) {
1003 try {
1004 const response = await request(
1005 `${host}/api/channels/channels/from-stream/`,
1006 {
1007 method: 'POST',
1008 body: values,
1009 }
1010 );
1011
1012 if (response.id) {
1013 useChannelsStore.getState().addChannel(response);
1014 }
1015
1016 return response;
1017 } catch (e) {
1018 errorNotification('Failed to create channel', e);
1019 }
1020 }
1021
1022 static async createChannelsFromStreamsAsync(
1023 streamIds,

Callers 1

Calls 3

requestFunction · 0.85
errorNotificationFunction · 0.85
addChannelMethod · 0.80

Tested by

no test coverage detected