31 lines
544 B
Plaintext
31 lines
544 B
Plaintext
url = params_kw.m3u_url
|
|
debug(f'{params_kw=}, {url=}')
|
|
try:
|
|
x = await load_url_iptv('iptv', url, 'iptvdb')
|
|
return {
|
|
"widgettype":"Message",
|
|
"options":{
|
|
"cwidth":21,
|
|
"cheight":15,
|
|
"archor":"cc",
|
|
"auto_open":true,
|
|
"auto_dismiss":true,
|
|
"title":"Success",
|
|
"message":"add success"
|
|
}
|
|
}
|
|
except Exception as e:
|
|
exception(f'{e=}')
|
|
return {
|
|
"widgettype":"Error",
|
|
"options":{
|
|
"cwidth":21,
|
|
"cheight":15,
|
|
"archor":"cc",
|
|
"auto_open":true,
|
|
"auto_dismiss":true,
|
|
"title":"Error",
|
|
"message":str(e)
|
|
}
|
|
}
|