From 8f85016d8cea53509ff7fa772500db2e85640174 Mon Sep 17 00:00:00 2001 From: cutls Date: Sun, 12 Jan 2020 20:42:23 +0900 Subject: [PATCH] [WIP] fix #208 --- app/main/np.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/main/np.js b/app/main/np.js index c77e99e7..709c56f3 100644 --- a/app/main/np.js +++ b/app/main/np.js @@ -16,12 +16,10 @@ function np(mainWindow) { try { const nowplaying = require('itunes-nowplaying-mac') let value = await nowplaying() - if (!value && npExec) { - const artwork = await nowplaying.getThumbnailBuffer(value.databaseID) - const base64 = artwork.toString('base64') - value.artwork = base64 - e.sender.webContents.send('itunes-np', value) - } + const artwork = await nowplaying.getThumbnailBuffer(value.databaseID) + const base64 = artwork.toString('base64') + value.artwork = base64 + e.sender.webContents.send('itunes-np', value) } catch (error) { // エラーを返す console.error(error)