Skip to content

Commit

Permalink
Update realtime.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dzx-dzx authored Sep 3, 2023
1 parent 4647778 commit b649271
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/v2/stheadline/std/realtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,6 @@ module.exports = async (ctx) => {
guid: e.articleLink.substring(0, e.articleLink.lastIndexOf('/')),
}));

// const items = $(`${category === '即時' ? '.moreNews > .col-md-4' : ''} .media-body > .my-2 > a`)
// .toArray()
// .map((item) => {
// item = $(item);
// return {
// title: item.attr('title'),
// link: item.attr('href'),
// guid: item.attr('href').substring(0, item.attr('href').lastIndexOf('/')),
// };
// });

await Promise.all(
items.map((item) =>
ctx.cache.tryGet(item.link, async () => {
Expand Down

0 comments on commit b649271

Please sign in to comment.