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=}')
try:
x = await load_url_iptv('iptv', url, 'iptvdb')

View File

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

View File

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