(channelId, insertAfterId)
| 870 | } |
| 871 | |
| 872 | static async reorderChannel(channelId, insertAfterId) { |
| 873 | try { |
| 874 | const response = await request( |
| 875 | `${host}/api/channels/channels/${channelId}/reorder/`, |
| 876 | { |
| 877 | method: 'POST', |
| 878 | body: { |
| 879 | insert_after_id: insertAfterId, |
| 880 | }, |
| 881 | } |
| 882 | ); |
| 883 | |
| 884 | return response; |
| 885 | } catch (e) { |
| 886 | errorNotification('Failed to reorder channel', e); |
| 887 | } |
| 888 | } |
| 889 | |
| 890 | static async setChannelEPG(channelId, epgDataId) { |
| 891 | try { |
no test coverage detected