From 8ce4b5b297f59b3b354733fc6c5ad1a4a8ac872f Mon Sep 17 00:00:00 2001 From: Araxeus <78568641+Araxeus@users.noreply.github.com> Date: Wed, 1 Dec 2021 21:44:48 +0200 Subject: [PATCH] lint --- providers/song-info-front.js | 4 ++-- providers/song-info.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/providers/song-info-front.js b/providers/song-info-front.js index 0c11f927..6e0349b1 100644 --- a/providers/song-info-front.js +++ b/providers/song-info-front.js @@ -18,7 +18,7 @@ const srcChangedEvent = new CustomEvent('srcChanged'); module.exports = () => { document.addEventListener('apiLoaded', apiEvent => { - if (config.plugins.isEnabled('tuna-obs')) { + if (config.plugins.isEnabled('tuna-obs')) { setupTimeChangeListener(); } const video = $('video'); @@ -42,7 +42,7 @@ module.exports = () => { function sendSongInfo() { const data = apiEvent.detail.getPlayerResponse(); - data.videoDetails.album = $('ytmusic-player-page')?.__data?.playerPageWatchMetadata?.albumName?.runs[0].text + data.videoDetails.album = $('ytmusic-player-page')?.__data?.playerPageWatchMetadata?.albumName?.runs[0].text data.videoDetails.elapsedSeconds = Math.floor(video.currentTime); data.videoDetails.isPaused = false; ipcRenderer.send("video-src-changed", JSON.stringify(data)); diff --git a/providers/song-info.js b/providers/song-info.js index f5f36930..330e0d7c 100644 --- a/providers/song-info.js +++ b/providers/song-info.js @@ -58,7 +58,7 @@ const handleData = async (responseText, win) => { songInfo.elapsedSeconds = videoDetails.elapsedSeconds; songInfo.isPaused = videoDetails.isPaused; songInfo.videoId = videoDetails.videoId; - songInfo.album = data?.videoDetails?.album + songInfo.album = data?.videoDetails?.album; // Will be undefined if video exist const oldUrl = songInfo.imageSrc; songInfo.imageSrc = videoDetails.thumbnail?.thumbnails?.pop()?.url.split("?")[0];