更新 'SrcLive.js'

master
src48597962 6 months ago
parent 413c215709
commit 43fdbccfc0
  1. 22
      SrcLive.js

@ -382,7 +382,7 @@ function guanlidata(datalist) {
} }
list.push({ list.push({
title: name, title: name,
img: globalMap0.getMyVar('gmParams').getIcon("直播-tv.svg"), img: globalMap0.getVar('Jy_gmParams').getIcon("直播-tv.svg"),
col_type: 'icon_2_round', col_type: 'icon_2_round',
url: $('#noLoading#').lazyRule((name) => { url: $('#noLoading#').lazyRule((name) => {
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcLive.js'); require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcLive.js');
@ -542,18 +542,18 @@ function LiveSet() {
}); });
d.push({ d.push({
title: "直播管理", title: "直播管理",
img: globalMap0.getMyVar('gmParams').getIcon("直播-管理.svg"), img: globalMap0.getVar('Jy_gmParams').getIcon("直播-管理.svg"),
col_type: "avatar", col_type: "avatar",
url: "hiker://empty", url: "hiker://empty",
}); });
d.push({ d.push({
title: "订阅源管理", title: "订阅源管理",
img: globalMap0.getMyVar('gmParams').getIcon("直播-箭头.svg"), img: globalMap0.getVar('Jy_gmParams').getIcon("直播-箭头.svg"),
url: $('hiker://empty#noRecordHistory##noHistory#').rule(() => { url: $('hiker://empty#noRecordHistory##noHistory#').rule(() => {
addListener("onClose", $.toString(() => { addListener("onClose", $.toString(() => {
//refreshPage(false); //refreshPage(false);
})); }));
let livecfgfile = globalMap0.getMyVar('gmParams').rulepath + "liveconfig.json"; let livecfgfile = globalMap0.getVar('Jy_gmParams').rulepath + "liveconfig.json";
let livecfg = fetch(livecfgfile); let livecfg = fetch(livecfgfile);
if (livecfg != "") { if (livecfg != "") {
eval("var liveconfig = " + livecfg); eval("var liveconfig = " + livecfg);
@ -687,7 +687,7 @@ function LiveSet() {
} }
if (YClives.length > 0) { if (YClives.length > 0) {
let importnum = 0; let importnum = 0;
let JYlivefile = globalMap0.getMyVar('gmParams').rulepath + "live.txt"; let JYlivefile = globalMap0.getVar('Jy_gmParams').rulepath + "live.txt";
let JYlive = fetch(JYlivefile); let JYlive = fetch(JYlivefile);
if (JYlive) { if (JYlive) {
var JYlives = JYlive.split('\n'); var JYlives = JYlive.split('\n');
@ -766,7 +766,7 @@ function LiveSet() {
}); });
d.push({ d.push({
title: "TVBox订阅", title: "TVBox订阅",
img: globalMap0.getMyVar('gmParams').getIcon("直播-箭头.svg"), img: globalMap0.getVar('Jy_gmParams').getIcon("直播-箭头.svg"),
col_type: "text_icon", col_type: "text_icon",
url: $('hiker://empty#noRecordHistory##noHistory#').rule(() => { url: $('hiker://empty#noRecordHistory##noHistory#').rule(() => {
addListener("onClose", $.toString(() => { addListener("onClose", $.toString(() => {
@ -950,7 +950,7 @@ function LiveSet() {
}); });
d.push({ d.push({
title: "编辑本地源", title: "编辑本地源",
img: globalMap0.getMyVar('gmParams').getIcon("直播-箭头.svg"), img: globalMap0.getVar('Jy_gmParams').getIcon("直播-箭头.svg"),
col_type: "text_icon", col_type: "text_icon",
url: url:
getMyVar("JYlivedyurl", "juying") == "juying" getMyVar("JYlivedyurl", "juying") == "juying"
@ -966,10 +966,10 @@ function LiveSet() {
}); });
d.push({ d.push({
title: "清空直播源", title: "清空直播源",
img: globalMap0.getMyVar('gmParams').getIcon("直播-箭头.svg"), img: globalMap0.getVar('Jy_gmParams').getIcon("直播-箭头.svg"),
col_type: "text_icon", col_type: "text_icon",
url: $("确定清空聚影直播本地文件?").confirm(() => { url: $("确定清空聚影直播本地文件?").confirm(() => {
writeFile(globalMap0.getMyVar('gmParams').rulepath + "live.txt", ""); writeFile(globalMap0.getVar('Jy_gmParams').rulepath + "live.txt", "");
if (getMyVar("JYlivedyurl", "juying") == "juying") { if (getMyVar("JYlivedyurl", "juying") == "juying") {
putMyVar("isEdit", "1"); putMyVar("isEdit", "1");
} }
@ -983,7 +983,7 @@ function LiveSet() {
}); });
d.push({ d.push({
title: "清理失效", title: "清理失效",
img: globalMap0.getMyVar('gmParams').getIcon("直播-清理.svg"), img: globalMap0.getVar('Jy_gmParams').getIcon("直播-清理.svg"),
col_type: "avatar", col_type: "avatar",
url: "hiker://empty", url: "hiker://empty",
}); });
@ -994,7 +994,7 @@ function LiveSet() {
url: $('#noLoading#').lazyRule(() => { url: $('#noLoading#').lazyRule(() => {
putMyVar('isEdit', '1'); putMyVar('isEdit', '1');
let urls = []; let urls = [];
let JYlivefile = globalMap0.getMyVar('gmParams').rulepath + "live.txt"; let JYlivefile = globalMap0.getVar('Jy_gmParams').rulepath + "live.txt";
let JYlive = fetch(JYlivefile); let JYlive = fetch(JYlivefile);
if (JYlive != "") { if (JYlive != "") {
var task = function (obj) { var task = function (obj) {

Loading…
Cancel
Save