mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
@@ -44,6 +44,10 @@ module.exports = async (ctx, next) => {
|
||||
}
|
||||
}
|
||||
|
||||
if (!item.pubDate) {
|
||||
item.pubDate = new Date().toISOString();
|
||||
}
|
||||
|
||||
if (item.enclosure_length) {
|
||||
const itunes_duration =
|
||||
Math.floor(item.enclosure_length / 3600) + ':' + (Math.floor((item.enclosure_length % 3600) / 60) / 100).toFixed(2).slice(-2) + ':' + (((item.enclosure_length % 3600) % 60) / 100).toFixed(2).slice(-2);
|
||||
|
||||
Reference in New Issue
Block a user