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

Method deleteM3UProfile

frontend/src/api.js:1881–1892  ·  view source on GitHub ↗
(accountId, id)

Source from the content-addressed store, hash-verified

1879 }
1880
1881 static async deleteM3UProfile(accountId, id) {
1882 try {
1883 await request(`${host}/api/m3u/accounts/${accountId}/profiles/${id}/`, {
1884 method: 'DELETE',
1885 });
1886
1887 const playlist = await API.getPlaylist(accountId);
1888 usePlaylistsStore.getState().updatePlaylist(playlist);
1889 } catch (e) {
1890 errorNotification(`Failed to delete profile for account ${accountId}`, e);
1891 }
1892 }
1893
1894 static async updateM3UProfile(accountId, values) {
1895 const { id, ...payload } = values;

Callers 1

deleteM3UProfileFunction · 0.80

Calls 4

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

Tested by

no test coverage detected