1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Use JSON when POSTing data

This commit is contained in:
MrTimscampi 2020-08-12 21:17:07 +02:00
parent 784f9fcc32
commit 3359fc388b
9 changed files with 15 additions and 15 deletions

View file

@ -19,11 +19,11 @@ export default class channelMapper {
connectionManager.getApiClient(options.serverId).ajax({
type: 'POST',
url: ApiClient.getUrl('LiveTv/ChannelMappings'),
data: {
data: JSON.stringify({
providerId: providerId,
tunerChannelId: channelId,
providerChannelId: providerChannelId
},
}),
dataType: 'json'
}).then(mapping => {
const listItem = dom.parentWithClass(button, 'listItem');