mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2025-02-06 01:54:31 +08:00
fix: remove bilibili RSS
This commit is contained in:
parent
83adfbc303
commit
26e28799ff
@ -12,11 +12,9 @@ class RSSApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static Future<List<RssItem>> getRssText() async {
|
static Future<List<RssItem>> getRssText() async {
|
||||||
final r1 = await RSHttp.getText(URLConf.rssTextUrl1);
|
|
||||||
final r1f = RssFeed.parse(r1);
|
|
||||||
final r2 = await RSHttp.getText(URLConf.rssTextUrl2);
|
final r2 = await RSHttp.getText(URLConf.rssTextUrl2);
|
||||||
final r2f = RssFeed.parse(r2);
|
final r2f = RssFeed.parse(r2);
|
||||||
final items = r1f.items..addAll(r2f.items);
|
final items = r2f.items;
|
||||||
items.sort((a, b) {
|
items.sort((a, b) {
|
||||||
final aDate = HttpDate.parse(a.pubDate ?? "").millisecondsSinceEpoch;
|
final aDate = HttpDate.parse(a.pubDate ?? "").millisecondsSinceEpoch;
|
||||||
final bDate = HttpDate.parse(b.pubDate ?? "").millisecondsSinceEpoch;
|
final bDate = HttpDate.parse(b.pubDate ?? "").millisecondsSinceEpoch;
|
||||||
|
@ -29,8 +29,6 @@ class URLConf {
|
|||||||
static String get rssVideoUrl =>
|
static String get rssVideoUrl =>
|
||||||
"$rssApiHome/bilibili/user/channel/27976358/290653";
|
"$rssApiHome/bilibili/user/channel/27976358/290653";
|
||||||
|
|
||||||
static String get rssTextUrl1 => "$rssApiHome/bilibili/user/article/40102960";
|
|
||||||
|
|
||||||
static String get rssTextUrl2 =>
|
static String get rssTextUrl2 =>
|
||||||
"$rssApiHome/baidu/tieba/user/%E7%81%AC%E7%81%ACG%E7%81%AC%E7%81%AC&";
|
"$rssApiHome/baidu/tieba/user/%E7%81%AC%E7%81%ACG%E7%81%AC%E7%81%AC&";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user