Fix bugs related to media info (#150)

* Fix duration time element

* change interval time from 200 to 500
This commit is contained in:
Marie 2022-06-18 10:26:21 +02:00 committed by GitHub
parent 374f3da740
commit cdcf9431bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ const elements = {
media: '*[data-test="current-media-imagery"]', media: '*[data-test="current-media-imagery"]',
image: "img", image: "img",
current: '*[data-test="current-time"]', current: '*[data-test="current-time"]',
duration: '*[data-test="duration-time"]', duration: '*[data-test="duration"]',
bar: '*[data-test="progress-bar"]', bar: '*[data-test="progress-bar"]',
footer: "#footerPlayer", footer: "#footerPlayer",
album_header_title: '.header-details [data-test="title"]', album_header_title: '.header-details [data-test="title"]',
@ -429,7 +429,7 @@ setInterval(function () {
} }
} }
} }
}, 200); }, 500);
if (process.platform === "linux" && store.get(settings.mpris)) { if (process.platform === "linux" && store.get(settings.mpris)) {
try { try {