test: add template enclosure test cases

This commit is contained in:
DIYgod
2019-08-23 15:44:52 +08:00
parent 9a03bd4fe9
commit 745eb0d52a
4 changed files with 24 additions and 2 deletions

View File

@@ -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;
}
});