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,41 +2,31 @@
"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",
"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
}
},
{ {
"widgettype":"Form", "widgettype":"Form",
"description":"we can ONLY import m3u8 channels in m3u format, please input m3u url",
"id":"form", "id":"form",
"options":{ "options":{
"width":"100%",
"height":"100%",
"fields":[ "fields":[
{ {
"width":"100%",
"height":"100%",
"name":"m3u_url", "name":"m3u_url",
"uitype":"str" "label":"m3u网址",
"value":"m3u url",
"uitype":"text"
} }
] ]
}, },
@ -52,8 +42,6 @@
} }
] ]
} }
]
}
], ],
"binds":[ "binds":[
{ {

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
}, },