更新 'SrcLive.js'

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

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

Loading…
Cancel
Save