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 b649271 commit 37b6fee
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/v2/stheadline/std/realtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,9 @@ module.exports = async (ctx) => {

const items = (
await (async () => {
const headers = {
'Accept-Language': 'en-US,en;q=0.5',
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
};
if (category === '即時') {
const res = await got
.post('https://std.stheadline.com/realtime/get_more_instant_news', {
headers,
form: {
page: 1,
},
Expand All @@ -30,7 +25,6 @@ module.exports = async (ctx) => {
} else {
const res = await got
.post('https://std.stheadline.com/realtime/get_more_news', {
headers,
form: {
page: 1,
cat: category,
Expand All @@ -41,7 +35,7 @@ module.exports = async (ctx) => {
}
})()
).data.map((e) => ({
title: e.title,
title: e.title.tc,
link: e.articleLink,
guid: e.articleLink.substring(0, e.articleLink.lastIndexOf('/')),
}));
Expand Down

0 comments on commit 37b6fee

Please sign in to comment.