mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: filter out unwanted hosts for 2048 (#4073)
This commit is contained in:
@@ -16,7 +16,8 @@ async function getAvailableHosts(ctx) {
|
||||
.map(function() {
|
||||
return $(this).attr('href');
|
||||
})
|
||||
.get();
|
||||
.get()
|
||||
.filter((item) => item.match(/\//g).length < 3);
|
||||
|
||||
ctx.cache.set(cache_key, JSON.stringify(hosts));
|
||||
return hosts;
|
||||
|
||||
Reference in New Issue
Block a user