From cdcf9431bfaf7a3f4b330076a886ecc5f842960d Mon Sep 17 00:00:00 2001 From: Marie Date: Sat, 18 Jun 2022 10:26:21 +0200 Subject: [PATCH] Fix bugs related to media info (#150) * Fix duration time element * change interval time from 200 to 500 --- src/preload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/preload.js b/src/preload.js index 555a307..8ea737b 100644 --- a/src/preload.js +++ b/src/preload.js @@ -37,7 +37,7 @@ const elements = { media: '*[data-test="current-media-imagery"]', image: "img", current: '*[data-test="current-time"]', - duration: '*[data-test="duration-time"]', + duration: '*[data-test="duration"]', bar: '*[data-test="progress-bar"]', footer: "#footerPlayer", album_header_title: '.header-details [data-test="title"]', @@ -429,7 +429,7 @@ setInterval(function () { } } } -}, 200); +}, 500); if (process.platform === "linux" && store.get(settings.mpris)) { try {