From c939ee990b537423a348c993b4a0ffad2f161079 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 13 Sep 2025 14:58:45 +0800 Subject: [PATCH] bugfix --- wwwroot/add_channels.dspy | 2 +- wwwroot/add_channels.ui | 58 ++++++++++++++++----------------------- wwwroot/header.ui | 2 +- 3 files changed, 25 insertions(+), 37 deletions(-) diff --git a/wwwroot/add_channels.dspy b/wwwroot/add_channels.dspy index 630d003..06075ea 100644 --- a/wwwroot/add_channels.dspy +++ b/wwwroot/add_channels.dspy @@ -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') diff --git a/wwwroot/add_channels.ui b/wwwroot/add_channels.ui index 4e20710..cff8051 100644 --- a/wwwroot/add_channels.ui +++ b/wwwroot/add_channels.ui @@ -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')}}" + } } ] } diff --git a/wwwroot/header.ui b/wwwroot/header.ui index 06e50b8..fccdc5f 100644 --- a/wwwroot/header.ui +++ b/wwwroot/header.ui @@ -7,7 +7,7 @@ { "widgettype":"Icon", "options":{ - "url":"{{entire_url('/imgs/atvoe.png')}}", + "url":"{{entire_url('/imgs/atvoe.svg')}}", "cursor":"pointer", "rate":1.5 },