Files
TVbox-interface/香雅晴/XYQ推送.json
T
2023-05-01 15:17:40 +08:00

2 lines
6.0 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{"last_chapter_rule":"","title":"XYQ推送","author":"香雅情","url":"hiker://empty","version":1,"col_type":"movie_3","class_name":"","type":"tool","class_url":"","area_name":"","area_url":"","sort_name":"","year_name":"","sort_url":"","year_url":"","find_rule":"js:\nlet d = [];\nd.push({\n title: '设置电视IP',\n url: \"input://\" + getItem('hikertvboxset', 'http://' + getIP() + ':9978') + \"////请输入tvbox推送IP地址,如http://\" + getIP() + \":9978.js:setItem('hikertvboxset',input);refreshPage()\",\n col_type: 'scroll_button'\n});\nd.push({\n title: getItem('hikertvboxset', ''),\n //url: 'hiker://empty',\n url: \"input://\" + getItem('hikertvboxset', 'http://' + getIP() + ':9978') + \"////请输入tvbox推送IP地址,如http://\" + getIP() + \":9978.js:setItem('hikertvboxset',input);refreshPage()\",\n col_type: 'scroll_button'\n});\n\nd.push({\n title: \"推送\",\n url: $.toString(() => {\n clearMyVar('name');\n //var link = 'hiker://page/push.html?url=' + encodeURIComponent(input.replace(\"#isMusic=true#\", '').replace('#isVideo=true#', ''));\n var link = \"hiker://page/push?pushurl=\" + encodeURIComponent(input);\n\n if (input.startsWith('http') || input.startsWith('magnet:') || (input.includes(\"\\n\") && !input.startsWith(\"{\"))) {\n return link;\n } else if (input.startsWith(\"{\") && input.endsWith(\"}\")) {\n return link;\n } else if (/\\.torrent|ed2k\\:/.test(input)) {\n return 'toast://不支持推送这种链接。'\n } else {\n return 'toast://请输入正确的链接。'\n }\n }),\n extra: {\n titleVisible: true\n },\n col_type: 'input'\n});\nd.push({\n title: \"TVB搜索\",\n url: $.toString(() => {\n let tvip = getItem('hikertvboxset', '');\n let state = 'false';\n if (tvip != '' && tvip.includes(':997')) {\n var state = request(tvip + '/action', {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n //'X-Requested-With': 'XMLHttpRequest',\n 'Referer': tvip\n },\n timeout: 2000,\n body: 'do=search&word=' + input,\n method: 'POST'\n });\n }\n //log(state);\n if (state == 'ok') {\n return 'toast://搜索推送成功,请注意观看电视端tvbox界面';\n } else {\n return 'toast://搜索推送失败'\n }\n }),\n extra: {\n titleVisible: true\n },\n col_type: 'input'\n});\n//调用代码示例\n//return 'hiker://page/push?rule=XYQ推送&pushurl=' + encodeURIComponent(input);\n//url: 'hiker://page/push?rule=XYQ推送&pushurl='+encodeURIComponent(url);\nd.push({\n title: '下载TVBox推送插件',\n url: 'https://framagit.org/lzk23559/tvbox/-/tree/main',\n col_type: 'text_2'\n});\nd.push({\n title: '查看TV设置教程',\n url: 'https://framagit.org/lzk23559/tvbox/-/blob/main/%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E-%E5%BF%85%E7%9C%8B/XYQTVBox%E6%AD%A5%E9%AA%A4%E6%93%8D%E4%BD%9C%E8%AF%B4%E6%98%8E.pdf',\n col_type: 'text_2'\n});\nd.push({\n title: \"有推送功能的规则\",\n url: 'hiker://empty',\n col_type: \"text_1\"\n});\nvar jump = ['tvbox云盘推送', '云盘君(推送)', 'AI影搜(推送)', 'MY阿里云盘', '香情影视', '聚影√', '风影 Ⓕ','虎牙直播(推送)'];\nfor (var j in jump) {\n d.push({\n title: jump[j],\n url: 'hiker://home@' + jump[j],\n col_type: \"text_3\"\n });\n}\nsetResult(d);","search_url":"","group":"2推送","searchFind":"","detail_col_type":"movie_1","detail_find_rule":"","sdetail_col_type":"movie_1","sdetail_find_rule":"","ua":"mobile","preRule":"","pages":"[{\"col_type\":\"movie_3\",\"name\":\"推送\",\"path\":\"push\",\"rule\":\"js:\\nlet items = [];\\nlet pushin = decodeURIComponent(getParam(\\\"pushurl\\\"));\\nlet tvip = getItem('hikertvboxset', '');\\n\\nitems.push({\\n title: '当前IP' + tvip,\\n url: \\\"input://\\\" + getItem('hikertvboxset', 'http://' + getIP() + ':9978') + \\\"////请输入TVBox端的IP地址,如http://\\\" + getIP() + \\\":9978.js:setItem('hikertvboxset',input);refreshPage()\\\",\\n col_type: 'flex_button'\\n});\\nvar purl = pushin;\\n\\nif (pushin.includes('\\\\n') && !pushin.startsWith('{')) {\\n purl = pushin.replace(\\\"\\\\n\\\", '$');\\n}\\nif (pushin.startsWith('http') && pushin.includes(';{')) {\\n purl = JSON.stringify({\\n \\\"name\\\": \\\"海阔直链推送\\\",\\n \\\"url\\\": pushin\\n })\\n}\\nif (pushin.startsWith('https://www.aliyundrive.com/s/')) {\\n let reftoken = JSON.parse(fetch('hiker://files/rules/icy/icy-ali-token.json', {}))[0].refresh_token;\\n purl = JSON.stringify({\\n \\\"url\\\": pushin,\\n \\\"refresh_token\\\": reftoken\\n })\\n}\\nif (pushin.includes(':52020')) {\\n if (pushin.includes('redirectPlayUrl')) {\\n purl = JSON.stringify({\\n \\\"name\\\": \\\"海阔投屏直链\\\",\\n \\\"url\\\": pushin\\n })\\n } else {\\n purl = JSON.stringify({\\n \\\"name\\\": \\\"海阔网页投屏\\\",\\n \\\"url\\\": pushin\\n })\\n }\\n}\\n\\n//log('推送'+purl);\\nvar state = request(tvip + '/action', {\\n headers: {\\n 'Content-Type': 'application/x-www-form-urlencoded',\\n //'X-Requested-With': 'XMLHttpRequest',\\n 'Referer': tvip\\n },\\n timeout: 2000,\\n body: 'do=push&url=' + purl.replace(/\\\\&/g, '&&').replace(/video\\\\:\\\\/\\\\//g,''),\\n method: 'POST'\\n});\\n//log(state);\\nif (state == 'ok') {\\n //log(state);\\n items.push({\\n title: \\\"√\\\" + state,\\n url: \\\"hiker://empty\\\",\\n col_type: \\\"text_center_1\\\"\\n });\\n} else {\\n //log(state);\\n items.push({\\n title: \\\"\\\" + state,\\n url: \\\"hiker://empty\\\",\\n col_type: \\\"text_center_1\\\"\\n });\\n\\n}\\nsetResult(items);\"}]","icon":"","proxy":""}