mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-16 11:37:44 +08:00
refactor: format
This commit is contained in:
@@ -23,7 +23,7 @@ module.exports = async (ctx) => {
|
||||
|
||||
try {
|
||||
// Get total page number
|
||||
const last_page_link = response.headers.link.split(',').find(function(elem) {
|
||||
const last_page_link = response.headers.link.split(',').find(function (elem) {
|
||||
return elem.includes('"last"');
|
||||
});
|
||||
const url_base = last_page_link.match(/<(.*)page=\d*/)[1];
|
||||
@@ -63,7 +63,7 @@ module.exports = async (ctx) => {
|
||||
let index = 0;
|
||||
|
||||
// Generate RSS
|
||||
data.forEach(function(item) {
|
||||
data.forEach(function (item) {
|
||||
const time = new Date();
|
||||
time.setMinutes(time.getMinutes() - index);
|
||||
index++;
|
||||
|
||||
Reference in New Issue
Block a user