mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 23:00:48 +08:00
test: add template enclosure test cases
This commit is contained in:
@@ -45,7 +45,8 @@ module.exports = async (ctx, next) => {
|
||||
}
|
||||
|
||||
if (item.enclosure_length) {
|
||||
const itunes_duration = Math.floor(item.enclosure_length / 3600) + ':' + Math.floor((item.enclosure_length % 3600) / 60) + ':' + (((item.enclosure_length % 3600) % 60) / 100).toFixed(2).slice(-2);
|
||||
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);
|
||||
item.itunes_duration = itunes_duration;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user