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

Method updateM3UProfile

frontend/src/api.js:1894–1908  ·  view source on GitHub ↗
(accountId, values)

Source from the content-addressed store, hash-verified

1892 }
1893
1894 static async updateM3UProfile(accountId, values) {
1895 const { id, ...payload } = values;
1896
1897 try {
1898 await request(`${host}/api/m3u/accounts/${accountId}/profiles/${id}/`, {
1899 method: 'PUT',
1900 body: payload,
1901 });
1902
1903 const playlist = await API.getPlaylist(accountId);
1904 usePlaylistsStore.getState().updatePlaylist(playlist);
1905 } catch (e) {
1906 errorNotification(`Failed to update profile for account ${accountId}`, e);
1907 }
1908 }
1909
1910 static async refreshAccountInfo(profileId) {
1911 try {

Callers 1

updateM3UProfileFunction · 0.80

Calls 4

requestFunction · 0.85
errorNotificationFunction · 0.85
getPlaylistMethod · 0.80
updatePlaylistMethod · 0.80

Tested by

no test coverage detected