parent
ede67825b0
commit
19a219e076
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue