This commit is contained in:
yumoqing 2025-09-13 14:58:45 +08:00
parent c79991e5ec
commit c939ee990b
3 changed files with 25 additions and 37 deletions

View File

@ -1,4 +1,4 @@
url = params_kw.m3u_url url = params_kw.url
debug(f'{params_kw=}, {url=}') debug(f'{params_kw=}, {url=}')
try: try:
x = await load_url_iptv('iptv', url, 'iptvdb') x = await load_url_iptv('iptv', url, 'iptvdb')

View File

@ -2,55 +2,43 @@
"widgettype":"PopupWindow", "widgettype":"PopupWindow",
"options":{ "options":{
"width":"80%", "width":"80%",
"cheight":16, "cheight":36,
"widget":"center", "widget":"center",
"auto_open":true, "auto_open":true,
"moving":true,
"modal":true, "modal":true,
"archor":"cc", "archor":"cc",
"movable": true,
"icon":"/imgs/tv.png", "icon":"/imgs/tv.png",
"title":"添加频道" "title":"添加频道"
}, },
"subwidgets":[ "subwidgets":[
{ {
"widgettype":"VBox", "widgettype":"Form",
"description":"we can ONLY import m3u8 channels in m3u format, please input m3u url",
"id":"form",
"options":{ "options":{
"width":"100%", "width":"100%",
"height":"100%" "height":"100%",
}, "fields":[
"subwidgets":[ {
{ "width":"100%",
"widgettype":"Text", "height":"100%",
"options":{ "name":"m3u_url",
"otext":"we can ONLY import m3u8 channels in m3u format, please input m3u url" "label":"m3u网址",
,"i18n":true, "value":"m3u url",
"wrap":true, "uitype":"text"
"rate":1.5,
"dynsize":true
} }
}, ]
},
"binds":[
{ {
"widgettype":"Form", "wid":"self",
"id":"form", "event":"submit",
"actiontype":"urlwidget",
"target":"self",
"options":{ "options":{
"fields":[ "url":"{{entire_url('add_channels.dspy')}}"
{ }
"name":"m3u_url",
"uitype":"str"
}
]
},
"binds":[
{
"wid":"self",
"event":"submit",
"actiontype":"urlwidget",
"target":"self",
"options":{
"url":"{{entire_url('add_channels.dspy')}}"
}
}
]
} }
] ]
} }

View File

@ -7,7 +7,7 @@
{ {
"widgettype":"Icon", "widgettype":"Icon",
"options":{ "options":{
"url":"{{entire_url('/imgs/atvoe.png')}}", "url":"{{entire_url('/imgs/atvoe.svg')}}",
"cursor":"pointer", "cursor":"pointer",
"rate":1.5 "rate":1.5
}, },