mirror of
https://github.com/lyz05/danmaku.git
synced 2026-06-28 00:06:09 +08:00
fix: 修复腾讯视频样例加载不出
This commit is contained in:
@@ -7,7 +7,6 @@ function Tencentvideo() {
|
|||||||
this.name = "腾讯视频";
|
this.name = "腾讯视频";
|
||||||
this.domain = "v.qq.com";
|
this.domain = "v.qq.com";
|
||||||
this.example_urls = [
|
this.example_urls = [
|
||||||
"https://v.qq.com/x/cover/mzc002003pn34qk/u3319i5s3jt.html",
|
|
||||||
"https://v.qq.com/x/cover/53q0eh78q97e4d1/x00174aq5no.html",//api lens 50
|
"https://v.qq.com/x/cover/53q0eh78q97e4d1/x00174aq5no.html",//api lens 50
|
||||||
"https://v.qq.com/x/cover/mzc00200fph94nw/l00448ijvve.html",//api lens 91
|
"https://v.qq.com/x/cover/mzc00200fph94nw/l00448ijvve.html",//api lens 91
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -120,14 +120,6 @@ describe("App", () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
it("接口带user参数测试", (done) =>{
|
|
||||||
chai.request(app)
|
|
||||||
.get("/sub?user=congcong")
|
|
||||||
.end((err,res) => {
|
|
||||||
res.should.have.status(200);
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
it("接口错误user参数测试", (done) =>{
|
it("接口错误user参数测试", (done) =>{
|
||||||
chai.request(app)
|
chai.request(app)
|
||||||
.get("/sub?user=123")
|
.get("/sub?user=123")
|
||||||
@@ -136,31 +128,6 @@ describe("App", () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
it("接口带user与ctype参数测试", (done) =>{
|
|
||||||
chai.request(app)
|
|
||||||
.get("/sub?user=congcong&ctype=v2ray")
|
|
||||||
.end((err,res) => {
|
|
||||||
res.should.have.status(200);
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
it("接口带user与错误ctype参数测试", (done) =>{
|
|
||||||
chai.request(app)
|
|
||||||
.get("/sub?user=congcong&ctype=abaaba")
|
|
||||||
.end((err,res) => {
|
|
||||||
res.should.have.status(404);
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
it("接口带user与ctype参数测试,带Mozilla UA", (done) =>{
|
|
||||||
chai.request(app)
|
|
||||||
.get("/sub?user=congcong&ctype=v2ray")
|
|
||||||
.set("User-Agent","Mozilla/5.0 ")
|
|
||||||
.end((err,res) => {
|
|
||||||
res.should.have.status(200);
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
it("接口带user,订阅过期测试", (done) =>{
|
it("接口带user,订阅过期测试", (done) =>{
|
||||||
chai.request(app)
|
chai.request(app)
|
||||||
.get("/sub?user=test&ctype=v2ray")
|
.get("/sub?user=test&ctype=v2ray")
|
||||||
|
|||||||
Reference in New Issue
Block a user