mirror of
https://github.com/iptv-org/iptv-org.github.io.git
synced 2025-05-13 18:40:06 -04:00
Update EditButton.svelte
This commit is contained in:
parent
c6b1ccc5b1
commit
ffc5290cb0
1 changed files with 25 additions and 17 deletions
|
@ -13,28 +13,36 @@
|
||||||
if (channel.is_nsfw === true) is_nsfw = 'TRUE'
|
if (channel.is_nsfw === true) is_nsfw = 'TRUE'
|
||||||
else if (channel.is_nsfw === false) is_nsfw = 'FALSE'
|
else if (channel.is_nsfw === false) is_nsfw = 'FALSE'
|
||||||
|
|
||||||
|
// let params = {
|
||||||
|
// labels,
|
||||||
|
// template,
|
||||||
|
// title,
|
||||||
|
// id: channel.id,
|
||||||
|
// name: channel.name,
|
||||||
|
// alt_names: channel.alt_names.join(';'),
|
||||||
|
// network: channel.network,
|
||||||
|
// owners: channel.owners.join(';'),
|
||||||
|
// country: channel.country,
|
||||||
|
// subdivision: channel.subdivision,
|
||||||
|
// city: channel.city,
|
||||||
|
// broadcast_area: channel.broadcast_area.join(';'),
|
||||||
|
// languages: channel.languages.join(';'),
|
||||||
|
// categories: channel.categories.join(';'),
|
||||||
|
// is_nsfw,
|
||||||
|
// launched: channel.launched,
|
||||||
|
// closed: channel.closed,
|
||||||
|
// replaced_by: channel.replaced_by,
|
||||||
|
// website: channel.website,
|
||||||
|
// logo: channel.logo
|
||||||
|
// }
|
||||||
|
|
||||||
let params = {
|
let params = {
|
||||||
labels,
|
labels,
|
||||||
template,
|
template,
|
||||||
title,
|
title,
|
||||||
id: channel.id,
|
id: channel.id
|
||||||
name: channel.name,
|
|
||||||
alt_names: channel.alt_names.join(';'),
|
|
||||||
network: channel.network,
|
|
||||||
owners: channel.owners.join(';'),
|
|
||||||
country: channel.country,
|
|
||||||
subdivision: channel.subdivision,
|
|
||||||
city: channel.city,
|
|
||||||
broadcast_area: channel.broadcast_area.join(';'),
|
|
||||||
languages: channel.languages.join(';'),
|
|
||||||
categories: channel.categories.join(';'),
|
|
||||||
is_nsfw,
|
|
||||||
launched: channel.launched,
|
|
||||||
closed: channel.closed,
|
|
||||||
replaced_by: channel.replaced_by,
|
|
||||||
website: channel.website,
|
|
||||||
logo: channel.logo
|
|
||||||
}
|
}
|
||||||
|
|
||||||
params = qs.stringify(params)
|
params = qs.stringify(params)
|
||||||
|
|
||||||
const editUrl = `${endpoint}?${params}`
|
const editUrl = `${endpoint}?${params}`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue