Comments (9)
https://raw.githubusercontent.com/catvod/CatVodOpen/main/nodejs/src/spider/video/push.js
源推送
from tvspider.
https://raw.githubusercontent.com/catvod/CatVodOpen/main/nodejs/src/spider/video/push.js
源推送
源推送我没用过,具体描述下功能呢,是不是扫码推送。
from tvspider.
catvod的配置文件中增加
{
"key": "push_agent",
"name": " | 推送 | ",
"type": 3,
"api": "push.js",
"ext": ""
}
key为push_agent时catvod识别为推送
点击推送按钮之后,识别剪贴板内容
爬虫代码里实现检查剪贴板内容是否支持播放的方法,__jsEvalReturn()
返回对象中中增加support键值
async function check(args) {
/**
* @params 字符串 -> 剪贴板|内容
* @return 布尔 -> 该是否支持通过CatVod播放
*/
return true;
}
...
export function __jsEvalReturn() {
return {
support: check,
init: init,
detail: detail,
play: play,
};
}
大概实现代码
class PushAgent extends Spider {
constructor() {
super();
}
async init(cfg) {
// cfg["skey"] 必须为push_agent 才能再界面上显示点击按钮
await super.init(cfg);
}
async setDetail(pushStr) {
/**
* @params pushStr 字符串 -> 剪贴板内容
*/
// TODO 处理pushStr
}
}
let spider = new PushAgent()
async function check(args) {
/**
* @params 字符串 -> 剪贴板|内容
* @return 布尔 -> 该是否支持通过CatVod播放
*/
return true;
}
async function init(cfg) {
await spider.init(cfg)
}
async function detail(id) {
return await spider.detail(id)
}
async function play(flag, id, flags) {
return await spider.play(flag, id, flags)
}
export function __jsEvalReturn() {
return {
support: check,
init: init,
detail: detail,
play: play,
};
}
from tvspider.
推送格式
关于推送格式的内容具体有什么模版吗,比如像影视是直接推送播放连接,还是有自定义的需求。
from tvspider.
完成本地推送的功能,可以看下https://github.com/jadehh/TV/blob/js/js/push_agent.js
from tvspider.
推送格式
关于推送格式的内容具体有什么模版吗,比如像影视是直接推送播放连接,还是有自定义的需求。
推送格式的话除了播放连接(像.m3u8 .mp4)通过目前的处理应该可以播放,还有一种像阿里云盘的分享链接或者夸克盘的分享链接可能还需要再处理才行,应该把玩偶哥哥处理detail那套搬过来就行
from tvspider.
推送格式
关于推送格式的内容具体有什么模版吗,比如像影视是直接推送播放连接,还是有自定义的需求。
推送格式的话除了播放连接(像.m3u8 .mp4)通过目前的处理应该可以播放,还有一种像阿里云盘的分享链接或者夸克盘的分享链接可能还需要再处理才行,应该把玩偶哥哥处理detail那套搬过来就行
好的目前只有直链能播放,阿里的那套后续会考虑加上,夸克的暂不支持
from tvspider.
👍
from tvspider.
本地推送
- 支持http和https的直链视频链接(需要CatVodOpen本地的支持)
- 支持阿里云盘分享链接
建议还是使用影视App自带的本地推送,支持的视频格式会多点,如ftp,磁力链接等,猫影视不支持的格式太多
from tvspider.
Related Issues (20)
- 请麻烦添加这几个网盘 HOT 1
- 玩偶哥哥无法打开详情页面 HOT 3
- 支持【夸克云盘】 HOT 1
- 请问再哪里添加自动发布参数啊 HOT 1
- 修复 【快看】
- 修复 【阿里猫狸】
- 是我哪里做的不对吗 HOT 10
- 阿里看不了 HOT 2
- ios的怎么解决 HOT 1
- 请求帮助,py脚本,读取非规范的json代码,能用什么方法读取,求助 HOT 22
- 您好,已解决了谢谢您
- https://www.laobai.tv/ HOT 1
- http://duopan.fun HOT 1
- 源名称: 西瓜卡通
- https://www.haituu.tv
- https://www.olevod.com
- https://www.duboku.tv/
- 您好:请求帮助,请求您有空时帮帮我 HOT 1
- https://gaze.run
- 大佬,有时间的话,有考虑加入uc嘛?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tvspider.