mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-25 02:57:57 +00:00
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:
parent
72ecb88c76
commit
cb49172e98
1 changed files with 14 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue