Skip to content

Commit a9be6aa

Browse files
author
Taois
committed
feat:新增另类写法的cat源支持
1 parent fe12e24 commit a9be6aa

File tree

6 files changed

+17
-6
lines changed

6 files changed

+17
-6
lines changed

libs_drpy/drpyInject.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,11 +733,22 @@ class BaseSpider {
733733
this.play = this.playerContent;
734734
this.homeVod = this.homeVideoContent;
735735
this.proxy = this.localProxy;
736+
// this.fetch = request;
736737
}
737738

738739
async fetch(url, options) {
739740
const content = (await req(url, options)).content;
740-
return {data: content.parseX};
741+
return {
742+
content,
743+
get data() { // data尝试返回object
744+
try {
745+
// console.log('get data:', this.content);
746+
return this.content.parseX;
747+
} catch (e) {
748+
return {};
749+
}
750+
}
751+
};
741752
}
742753

743754
async homeContent() {

spider/catvod/哩哩[官].js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
searchable: 1,
66
filterable: 1,
77
quickSearch: 1,
8-
title: 'B站',
8+
title: '哩哩[官]',
99
lang: 'cat'
1010
})
1111
*/

spider/catvod/央央[官].js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
searchable: 1,
66
filterable: 1,
77
quickSearch: 1,
8-
title: '央视大全',
8+
title: '央央[官]',
99
lang: 'cat'
1010
})
1111
*/

spider/catvod/奇奇[官].js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
searchable: 1,
66
filterable: 1,
77
quickSearch: 1,
8-
title: '爱奇艺视频',
8+
title: '奇奇[官]',
99
lang: 'cat'
1010
})
1111
*/

spider/catvod/果果[官].js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
searchable: 1,
66
filterable: 1,
77
quickSearch: 1,
8-
title: '芒果TV',
8+
title: '果果[官]',
99
lang: 'cat'
1010
})
1111
*/

spider/catvod/酷酷[官].js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
searchable: 1,
66
filterable: 1,
77
quickSearch: 1,
8-
title: '优酷视频',
8+
title: '酷酷[官]',
99
lang: 'cat'
1010
})
1111
*/

0 commit comments

Comments
 (0)