Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3584efb09b | ||
|
|
f357e920b7 | ||
|
|
dca03c4f0c | ||
|
|
576137a62f |
+1
-1
@@ -1,5 +1,5 @@
|
||||
import sources from "../shared/sources.json"
|
||||
|
||||
Promise.all(Object.keys(sources).map(id =>
|
||||
fetch(`https://newsnow.busiyi.world/api/s?id=${id}`),
|
||||
fetch(`https://hot.chgr.cc/api/s?id=${id}`),
|
||||
)).catch(console.error)
|
||||
|
||||
Vendored
+1
@@ -22,6 +22,7 @@ declare module 'glob:./sources/{*.ts,**/index.ts}' {
|
||||
export const kaopu: typeof import('./sources/kaopu')
|
||||
export const kuaishou: typeof import('./sources/kuaishou')
|
||||
export const linuxdo: typeof import('./sources/linuxdo')
|
||||
export const idcflare: typeof import('./sources/idcflare')
|
||||
export const mktnews: typeof import('./sources/mktnews')
|
||||
export const nowcoder: typeof import('./sources/nowcoder')
|
||||
export const pcbeta: typeof import('./sources/pcbeta')
|
||||
|
||||
@@ -55,7 +55,7 @@ const latest = defineSource(async () => {
|
||||
})
|
||||
|
||||
export default defineSource({
|
||||
"linuxdo": latest,
|
||||
"linuxdo-latest": latest,
|
||||
"linuxdo-hot": hot,
|
||||
"idcflare": latest,
|
||||
"idcflare-latest": latest,
|
||||
"idcflare-hot": hot,
|
||||
})
|
||||
|
||||
@@ -123,8 +123,14 @@ export interface Actionlog2 {
|
||||
}
|
||||
|
||||
export default defineSource(async () => {
|
||||
const url = "https://m.weibo.cn/api/container/getIndex?containerid=106003type%3D25%26t%3D3%26disable_hot%3D1%26filter_type%3Drealtimehot"
|
||||
const res: Root = await myFetch(url)
|
||||
const url = "https://m.weibo.cn/api/container/getIndex?containerid=106003type%3D25%26t%3D3%26disable_hot%3D1%26filter_type%3Drealtimehot&title=%E5%BE%AE%E5%8D%9A%E7%83%AD%E6%90%9C&extparam=filter_type%3Drealtimehot%26mi_cid%3D100103%26pos%3D0_0%26c_type%3D30%26display_time%3D1540538388&luicode=10000011&lfid=231583"
|
||||
const res: Root = await myFetch(url, {
|
||||
headers: {
|
||||
"referer": "https://s.weibo.com/top/summary?cate=realtimehot",
|
||||
"mweibo-pwa": "1",
|
||||
"x-requested-with": "XMLHttpRequest",
|
||||
},
|
||||
})
|
||||
return res.data.cards[0].card_group
|
||||
.filter((k, i) => i !== 0 && k.desc && !k.actionlog?.ext.includes("ads_word"))
|
||||
.map((k) => {
|
||||
|
||||
Reference in New Issue
Block a user