diff --git a/apps/ios/boot.js b/apps/ios/boot.js index eb534455e..21509a336 100644 --- a/apps/ios/boot.js +++ b/apps/ios/boot.js @@ -123,11 +123,6 @@ E.on('notify',msg=>{ // TODO: posaction/negaction? }); -function format_song_time(song_seconds) { - var minutes = (new Array(3).join("0")+(Math.floor(song_seconds / 60))).slice(-2); - var seconds = (new Array(3).join("0")+(parseInt(song_seconds) - minutes * 60)).slice(-2); - return minutes + ":" + seconds; -} // Apple media service E.on('AMS',a=>{ @@ -136,7 +131,6 @@ E.on('AMS',a=>{ if (a.id=="artist") msg.artist = m; else if (a.id=="album") msg.album = m; else if (a.id=="title") msg.track = m; - else if (a.id=="duration") msg.duration = format_song_time(m); else return; require("messages").pushMessage(msg); }