Fix bug where creating a channel from a stream that isn't displayed in the table has invalid stream name.

This commit is contained in:
SergeantPanda 2025-07-29 15:02:13 -05:00
parent 72ecb88c76
commit cb49172e98

View file

@ -1675,4 +1675,18 @@ export default class API {
errorNotification('Failed to trigger stream rehash', e);
}
}
static async getStreamsByIds(ids) {
try {
const params = new URLSearchParams();
params.append('ids', ids.join(','));
const response = await request(
`${host}/api/channels/streams/?${params.toString()}`
);
return response.results || response;
} catch (e) {
errorNotification('Failed to retrieve streams by IDs', e);
}
}
}