From 6aeda0c9a4fabf8a56163414c0bff2e31f21afbb Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 27 Nov 2022 20:13:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcLive.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcLive.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/SrcLive.js b/SrcLive.js index 878dc3ce..3e7687af 100644 --- a/SrcLive.js +++ b/SrcLive.js @@ -299,15 +299,17 @@ function GroupEdit(groupname,mode,lists) { let JYlives = JYlive.split('\n'); for(let i=0;i-1&&JYlives[i].split(',')[0].replace(/TV-/g,'TV').replace(/\[.*\]/g,'').trim()==name){ - urls.push(JYlives[i].split(',')[1]); + if(JYlives[i].indexOf('#genre#')==-1&&JYlives[i].indexOf(',')>-1&&lists.some(item => item.name==JYlives[i].split(',')[0].trim())){ + urls.push(JYlives[i].split(',')[0].trim()+'$'+JYlives[i].split(',')[1].split('#')[0]); } - }catch(e){} + }catch(e){ + + } } let tvip = getItem('hikertvboxset', ''); if(urls.length>0){ push['from'] = groupname; - push['url'] = {urls:urls};//urls.join('#').replace(/\&/g, '&&'); + push['url'] = urls.join('#').replace(/\&/g, '&&'); var state = request(tvip + '/action', { headers: { 'Content-Type': 'application/x-www-form-urlencoded', @@ -320,7 +322,7 @@ function GroupEdit(groupname,mode,lists) { }); if (state == 'ok') { - return 'toast://推送成功,如果tvbox显示“没找到数据”可能是该链接需要密码或者当前的jar不支持。'; + return 'toast://推送成功,如果不能播放则TVBOX版本不支持,分组推送只支持单线路。'; } else { return 'toast://推送失败'; } @@ -507,7 +509,7 @@ function LiveEdit(name,mode) { }); if (state == 'ok') { - return 'toast://推送成功,如果tvbox显示“没找到数据”可能是该链接需要密码或者当前的jar不支持。'; + return 'toast://推送成功,如果不能播放则TVBOX版本不支持,单频道推送支持多线路。'; } else { return 'toast://推送失败'; }