diff --git a/src/renderer/views/pages/replay.ejs b/src/renderer/views/pages/replay.ejs
index 9acc591a..ba14dd64 100644
--- a/src/renderer/views/pages/replay.ejs
+++ b/src/renderer/views/pages/replay.ejs
@@ -22,7 +22,7 @@
-
{{ loaded.attributes.listenTimeInMinutes }} {{$root.getLz('term.time.minutes')}}
+ {{ convertToHours(loaded.attributes.listenTimeInMinutes) }} {{$root.getLz('term.time.hours')}}
{{ loaded.attributes.uniqueAlbumCount }} {{$root.getLz('term.uniqueAlbums')}}
{{ loaded.attributes.uniqueArtistCount }} {{$root.getLz('term.uniqueArtists')}}
{{ loaded.attributes.uniqueSongCount }} {{$root.getLz('term.uniqueSongs')}}
@@ -40,7 +40,7 @@
@@ -55,7 +55,7 @@
@@ -151,6 +151,9 @@
let playlist = await app.mk.api.v3.music(replayData.relationships.playlist.data[0].href, {extend: "editorialArtwork,editorialVideo"})
replayData.playlist = playlist.data.data[0]
this.loaded = replayData
+ },
+ convertToHours(minutes) {
+ return Math.floor(minutes / 60)
}
}
});