File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,9 @@ async function handler() {
36
36
item = $ ( item ) ;
37
37
return {
38
38
title : item . find ( 'h3' ) . text ( ) . trim ( ) ,
39
- link : `https://duckdb.org${ item . find ( 'a' ) . eq ( 2 ) . attr ( 'href' ) } ` ,
39
+ link : `https://duckdb.org${ item . find ( 'a.blocklink' ) . attr ( 'href' ) } ` ,
40
40
pubDate : timezone ( parseDate ( item . find ( '.date' ) . text ( ) , 'YYYY-MM-DD' ) , 0 ) ,
41
+ author : item . find ( '.author' ) . text ( ) . trim ( ) ,
41
42
} ;
42
43
} ) ;
43
44
@@ -46,9 +47,7 @@ async function handler() {
46
47
cache . tryGet ( item . link , async ( ) => {
47
48
const response = await got ( item . link ) ;
48
49
const $ = load ( response . body ) ;
49
- item . author = $ ( '.author' ) . text ( ) ;
50
- item . description = $ ( '.singleentry' ) . html ( ) ;
51
-
50
+ item . description = $ ( '.contentwidth' ) . find ( 'h1, .infoline' ) . remove ( ) . end ( ) . html ( ) ;
52
51
// 上面每个列表项的每个属性都在此重用,
53
52
// 并增加了一个新属性“description”
54
53
return item ;
You can’t perform that action at this time.
0 commit comments