427 lines
10 KiB
JSON
427 lines
10 KiB
JSON
{
|
|
"schema": {
|
|
"wallpaper": {
|
|
"type": "string",
|
|
"title": "壁纸接口",
|
|
"required": false
|
|
},
|
|
"spider": {
|
|
"type": "string",
|
|
"title": "自定义爬虫代码",
|
|
"required": false
|
|
},
|
|
"sites": {
|
|
"type": "array",
|
|
"title": "sites",
|
|
"items": {
|
|
"type": "object",
|
|
"title": "site",
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"title": "Key",
|
|
"required": true
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"title": "Name",
|
|
"required": true
|
|
},
|
|
"type": {
|
|
"type": "integer",
|
|
"title": "Type",
|
|
"enum": [0, 1, 2, 3, 4],
|
|
"required": true
|
|
},
|
|
"api": {
|
|
"title": "Api",
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"playUrl": {
|
|
"title": "PlayUrl",
|
|
"type": "string",
|
|
"required": false
|
|
},
|
|
"searchable": {
|
|
"type": "integer",
|
|
"title": "Searchable",
|
|
"enum": [0, 1],
|
|
"default": 1,
|
|
"required": true
|
|
},
|
|
"changeable": {
|
|
"type": "integer",
|
|
"title": "changeable",
|
|
"enum": [0, 1],
|
|
"default": 1,
|
|
"required": true
|
|
},
|
|
"playerType": {
|
|
"type": "integer",
|
|
"title": "playerType",
|
|
"enum": [1, 2],
|
|
"default": 0,
|
|
"required": true
|
|
},
|
|
"ext": {
|
|
"title": "扩展信息",
|
|
"type": "string",
|
|
"required": false
|
|
},
|
|
"categories": {
|
|
"type": "array",
|
|
"title": "Categories",
|
|
"items": {
|
|
"type": "string",
|
|
"title": "category"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"lives": {
|
|
"type": "array",
|
|
"title": "lives",
|
|
"items": {
|
|
"type": "object",
|
|
"title": "live",
|
|
"properties": {
|
|
"group": {
|
|
"type": "string",
|
|
"title": "Group",
|
|
"required": true
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"title": "Channels",
|
|
"items": {
|
|
"type": "object",
|
|
"title": "Channel",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"title": "Name",
|
|
"required": true
|
|
},
|
|
"urls": {
|
|
"type": "array",
|
|
"title": "Urls",
|
|
"items": {
|
|
"type": "string",
|
|
"title": "Url"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "array",
|
|
"title": "flags",
|
|
"items": {
|
|
"type": "string",
|
|
"title": "Flag"
|
|
}
|
|
},
|
|
"parses": {
|
|
"type": "array",
|
|
"title": "parses",
|
|
"items": {
|
|
"type": "object",
|
|
"title": "parse",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"title": "Name",
|
|
"required": true
|
|
},
|
|
"type": {
|
|
"type": "integer",
|
|
"title": "Type",
|
|
"enum": [0, 1, 2, 3],
|
|
"required": true
|
|
},
|
|
"url": {
|
|
"type": "string",
|
|
"title": "Url",
|
|
"required": true
|
|
},
|
|
"ext": {
|
|
"type": "object",
|
|
"title": "ParseExt",
|
|
"required": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"ijk": {
|
|
"type": "array",
|
|
"title": "Ijk",
|
|
"items": {
|
|
"type": "object",
|
|
"title": "Ijk",
|
|
"properties": {
|
|
"group": {
|
|
"type": "string",
|
|
"title": "Group",
|
|
"required": true
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"title": "Options",
|
|
"items": {
|
|
"type": "object",
|
|
"title": "Option",
|
|
"properties": {
|
|
"category": {
|
|
"type": "integer",
|
|
"title": "Category",
|
|
"enum": [1, 2, 3, 4],
|
|
"required": true
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"title": "Name",
|
|
"required": true
|
|
},
|
|
"value": {
|
|
"type": "string",
|
|
"title": "Value",
|
|
"required": true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"ads": {
|
|
"type": "array",
|
|
"title": "Ads",
|
|
"items": {
|
|
"type": "string",
|
|
"title": "Ad"
|
|
}
|
|
}
|
|
},
|
|
"form": [{
|
|
"type": "fieldset",
|
|
"notitle": true,
|
|
"items": [{
|
|
"type": "tabs",
|
|
"id": "navtabs",
|
|
"items": [{
|
|
"title": "点播源",
|
|
"type": "tab",
|
|
"items": [{
|
|
"type": "tabarray",
|
|
"htmlClass": "subTabLv1",
|
|
"items": [{
|
|
"type": "fieldset",
|
|
"legend": "{{ value }}",
|
|
"items": [{
|
|
"key": "sites[].key",
|
|
"placeholder": "数据源唯一标识,不可重复"
|
|
}, {
|
|
"key": "sites[].name",
|
|
"valueInLegend": true,
|
|
"placeholder": "数据源名称"
|
|
}, {
|
|
"key": "sites[].type",
|
|
"title": "Type 0-xml 1-json 2-爬虫源 3-自定义爬虫 4-服务器爬虫",
|
|
"placeholder": "数据源类型,0-xml 1-json 2-爬虫源 3-自定义爬虫 4-服务器爬虫"
|
|
}, {
|
|
"key": "sites[].api",
|
|
"placeholder": "数据源Api地址"
|
|
}, {
|
|
"key": "sites[].playUrl",
|
|
"placeholder": "站点播放地址"
|
|
}, {
|
|
"key": "sites[].searchable",
|
|
"title": "可搜索? 0-不可以 1-可以",
|
|
"placeholder": "是否可搜索,0-不可以 1-可以"
|
|
}, {
|
|
"key": "sites[].changeable",
|
|
"title": "可换源? 0-不可以 1-可以",
|
|
"placeholder": "是否可换源,0-不可以 1-可以"
|
|
}, {
|
|
"key": "sites[].playerType",
|
|
"title": "选择播放器? 1-IJK 2-EXO",
|
|
"placeholder": "选择播放器,0-IJL 1-EXO"
|
|
}, {
|
|
"type": "textarea",
|
|
"key": "sites[].ext",
|
|
"placeholder": "站点扩展信息"
|
|
}, {
|
|
"type": "array",
|
|
"title": "Categories 按顺序展示所配置的分类 不配置则默认展示所有分类",
|
|
"htmlClass": "subTabLv3",
|
|
"items": [{
|
|
"notitle": true,
|
|
"key": "sites[].categories[]",
|
|
"arrayItem": true
|
|
}]
|
|
}]
|
|
}]
|
|
}]
|
|
}, {
|
|
"title": "直播源",
|
|
"type": "tab",
|
|
"items": [{
|
|
"type": "tabarray",
|
|
"htmlClass": "subTabLv1",
|
|
"items": [{
|
|
"type": "fieldset",
|
|
"legend": "{{ value }}",
|
|
"items": [{
|
|
"key": "lives[].group",
|
|
"valueInLegend": true,
|
|
"placeholder": "直播频道分组"
|
|
}, {
|
|
"type": "tabarray",
|
|
"htmlClass": "subTabLv2",
|
|
"items": [{
|
|
"type": "fieldset",
|
|
"legend": "{{ value }}",
|
|
"items": [{
|
|
"key": "lives[].channels[].name",
|
|
"placeholder": "频道名",
|
|
"valueInLegend": true
|
|
}, {
|
|
"type": "array",
|
|
"title": "Urls",
|
|
"htmlClass": "subTabLv3",
|
|
"items": [{
|
|
"notitle": true,
|
|
"key": "lives[].channels[].urls[]",
|
|
"arrayItem": true
|
|
}]
|
|
}]
|
|
}]
|
|
}]
|
|
}]
|
|
}]
|
|
}, {
|
|
"title": "解析地址",
|
|
"type": "tab",
|
|
"items": [{
|
|
"type": "tabarray",
|
|
"htmlClass": "subTabLv1",
|
|
"items": [{
|
|
"type": "fieldset",
|
|
"legend": "{{ value }}",
|
|
"items": [{
|
|
"key": "parses[].name",
|
|
"valueInLegend": true,
|
|
"placeholder": "数据源名称"
|
|
}, {
|
|
"key": "parses[].type",
|
|
"title": "Type 0-普通 1-Json 2-多Json 3-聚合",
|
|
"placeholder": "解析类型,0-普通 1-Json 2-多Json 3-聚合"
|
|
}, {
|
|
"key": "parses[].url",
|
|
"placeholder": "数据源Api地址"
|
|
}, {
|
|
"type": "textarea",
|
|
"key": "parses[].ext",
|
|
"placeholder": "扩展数据"
|
|
}]
|
|
}]
|
|
}]
|
|
}, {
|
|
"title": "VIP解析标识",
|
|
"type": "tab",
|
|
"items": [{
|
|
"type": "tabarray",
|
|
"htmlClass": "subTabLv1",
|
|
"items": [{
|
|
"type": "fieldset",
|
|
"legend": "{{ value }}",
|
|
"items": {
|
|
"key": "flags[]",
|
|
"notitle": true,
|
|
"valueInLegend": true
|
|
}
|
|
}]
|
|
}]
|
|
}, {
|
|
"title": "IJK解码配置",
|
|
"type": "tab",
|
|
"items": [{
|
|
"type": "tabarray",
|
|
"titleHtml": "<div class=\"alert alert-danger\" role=\"alert\" style=\"margin-top: 15px;\">设置IJK播放器解码相关参数,不了解的不要随便修改!!!</div>",
|
|
"htmlClass": "subTabLv1",
|
|
"items": [{
|
|
"type": "fieldset",
|
|
"legend": "{{ value }}",
|
|
"items": [{
|
|
"key": "ijk[].group",
|
|
"valueInLegend": true,
|
|
"placeholder": "解码配置名"
|
|
}, {
|
|
"type": "tabarray",
|
|
"htmlClass": "subTabLv2",
|
|
"items": [{
|
|
"type": "fieldset",
|
|
"legend": "{{ value }}",
|
|
"items": [{
|
|
"key": "ijk[].options[].category",
|
|
"title": "OPT_CATEGORY_FORMAT=1 OPT_CATEGORY_CODEC=2 OPT_CATEGORY_SWS=3 OPT_CATEGORY_PLAYER=4",
|
|
"placeholder": "配置类型"
|
|
}, {
|
|
"key": "ijk[].options[].name",
|
|
"placeholder": "属性名",
|
|
"valueInLegend": true
|
|
}, {
|
|
"key": "ijk[].options[].value",
|
|
"placeholder": "属性值"
|
|
}]
|
|
}]
|
|
}]
|
|
}]
|
|
}]
|
|
}, {
|
|
"title": "解析广告过滤",
|
|
"type": "tab",
|
|
"items": [{
|
|
"type": "array",
|
|
"titleHtml": "<div class=\"alert alert-info\" role=\"alert\" style=\"margin-top: 15px;\">设置解析播放时webview过滤的广告</div>",
|
|
"draggable": false,
|
|
"items": [{
|
|
"type": "fieldset",
|
|
"items": {
|
|
"key": "ads[]",
|
|
"notitle": true,
|
|
"arrayItem": true
|
|
}
|
|
}]
|
|
}]
|
|
}, {
|
|
"title": "壁纸",
|
|
"type": "tab",
|
|
"items": [{
|
|
"type": "fieldset",
|
|
"items": [{
|
|
"key": "wallpaper",
|
|
"titleHtml": "<div class=\"alert alert-info\" role=\"alert\" style=\"margin-top: 15px;\">可自定义壁纸接口,不需要留空即可</div>",
|
|
"placeholder": "Url of img or random img"
|
|
}]
|
|
}]
|
|
}, {
|
|
"title": "自定义爬虫",
|
|
"type": "tab",
|
|
"items": [{
|
|
"type": "fieldset",
|
|
"items": [{
|
|
"key": "spider",
|
|
"titleHtml": "<div class=\"alert alert-info\" role=\"alert\" style=\"margin-top: 15px;\">自定义爬虫jar代码包,不需要留空即可</div>",
|
|
"placeholder": "Url of spider jar file"
|
|
}]
|
|
}]
|
|
}]
|
|
}]
|
|
}]
|
|
} |