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.quit(); +}); + +//stops extra app instances from opening +var shouldQuit = app.makeSingleInstance(function(commandLine, workingDirectory) { + // Someone tried to run a second instance, we should focus our window. + if (mainWindow) { + if (mainWindow.isMinimized()) mainWindow.restore(); + mainWindow.focus(); + } +}); + +if (shouldQuit) { + app.quit(); + return; +} + +//only allows one electron window open +var iSWindowOpen = false; +app.on('browser-window-created', function(event, window) { + if (iSWindowOpen){ + window.loadURL('javascript:window.close();'); + console.log("Close new window"); + }else{ + iSWindowOpen = true; + console.log("Open one window"); + } }); \ No newline at end of file diff --git a/modules/youtube-js/get-youtube.js b/modules/youtube-js/get-youtube.js index 4ad5bea..423cfa3 100644 --- a/modules/youtube-js/get-youtube.js +++ b/modules/youtube-js/get-youtube.js @@ -60,8 +60,8 @@ async function injectRun(mainWindow) { let now = moment.utc(), remaining = moment.duration(videoDuration - videoCurrentTime, 'seconds'); endTimestamp = now.add(remaining).unix(); - global.hasSeeked = videoCurrentTimeTemp != Math.floor(endTimestamp) - videoCurrentTimeTemp = Math.floor(endTimestamp) + global.hasSeeked = global.videoCurrentTimeTemp != Math.floor(endTimestamp) + global.videoCurrentTimeTemp = Math.floor(endTimestamp) rpcData.endTimestamp = endTimestamp; rpcData.state = 'By: '+ creator; @@ -88,6 +88,7 @@ async function injectRun(mainWindow) { rpcData.details = 'browsing'; rpcData.state = 'idle'; } + if (global.hasSeeked){ //update with endTimestamp has seeked global.hasSeeked = false; diff --git a/package-lock.json b/package-lock.json index b36c327..74006d3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -199,6 +199,19 @@ "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" }, + "bad-words": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/bad-words/-/bad-words-1.6.4.tgz", + "integrity": "sha512-L/ya7OHAMS/v7Ci3Nu5BVpHvJmMA7nytjloMbse0VkTvJ+kvQaSwaRMEethPQmKd3UALfS1MJF49YA1+X49KBw==", + "requires": { + "badwords-list": "1.0.0" + } + }, + "badwords-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/badwords-list/-/badwords-list-1.0.0.tgz", + "integrity": "sha1-XphW2/E0gqKVw7CzBK+51M/FxXk=" + }, "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", @@ -2120,6 +2133,9 @@ "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" }, + "q": { + "version": "git+https://github.com/kriskowal/q.git#8545bd6f6953dfd2a5e7fa4052ed6b39e010a8c5" + }, "qs": { "version": "6.5.2", "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", diff --git a/package.json b/package.json index 82969a2..92ff42e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "YouTube", "github_repository": "discord-youtube", - "version": "1.2.0", + "version": "1.2.2", "description": "A YouTube wrapper with Discord Rich Presence", "main": "main.js", "scripts": { @@ -50,6 +50,7 @@ }, "homepage": "https://github.com/BrianPetkovsek/discord-youtube#readme", "dependencies": { + "bad-words": "^1.6.4", "discord-rpc": "^3.0.0", "electron-widevinecdm": "^5.0.2", "moment": "^2.22.2", diff --git a/updating.html b/updating.html index b80ee6d..a4f6894 100644 --- a/updating.html +++ b/updating.html @@ -1 +1,9 @@ -This app is downloading and installing an update please wait! \ No newline at end of file + + + This app is downloading and installing an update please wait! +
++ If app taking a long time to update please download the latest release from GitHub. +
+GitHub + \ No newline at end of file diff --git a/youtube.png b/youtube.png deleted file mode 100644 index 182a7262c39af71c70868eb0a71607189b4f2e06..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10921 zcmeHt`9IWO^#8R)!YC>!Ti)*|-j?2F-=^Z7Bt#-&NKwRO-)F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