Skip to content

Commit

Permalink
feat: fix /people items and description (DIYgod#18360)
Browse files Browse the repository at this point in the history
  • Loading branch information
KTachibanaM authored Feb 15, 2025
1 parent 8929c27 commit 02963d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/routes/people/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async function handler(ctx) {
$(e).parent().remove();
});

let items = $('.p6, div.p2j_list, div.headingNews, div.ej_list_box, .fl, .leftItem')
let items = $('.p6, div.p2j_list, div.headingNews, div.ej_list_box, .leftItem')
.find('a')
.slice(0, limit)
.toArray()
Expand Down Expand Up @@ -75,7 +75,7 @@ async function handler(ctx) {

content('.paper_num, #rwb_tjyd').remove();

item.description = content('.rm_txt_con, .show_text').html();
item.description = content('#rwb_zw').html();
item.pubDate = timezone(parseDate(data.match(/(\d{4}\d{2}\d{2}\d{2}:\d{2})/)[1], 'YYYY年MM月DD日 HH:mm'), +8);
} catch (error) {
item.description = error;
Expand Down

0 comments on commit 02963d1

Please sign in to comment.