Skip to content

Commit

Permalink
fix(route): Adopt to different page formats on stheadline. (DIYgod#13177
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dzx-dzx authored Aug 31, 2023
1 parent c4b27c0 commit 00df931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/v2/stheadline/std/realtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = async (ctx) => {
const { data: response } = await got(url);
const $ = cheerio.load(response);

const items = $('.moreNews > .col-md-4 .media-body > .my-2 > a')
const items = $(`${category === '即時' ? '.moreNews > .col-md-4' : ''} .media-body > .my-2 > a`)
.toArray()
.map((item) => {
item = $(item);
Expand Down

0 comments on commit 00df931

Please sign in to comment.