diff --git a/common/modules/webtorrent.js b/common/modules/webtorrent.js index 3065c1a..6ea7bab 100644 --- a/common/modules/webtorrent.js +++ b/common/modules/webtorrent.js @@ -269,7 +269,7 @@ export default class TorrentClient extends WebTorrent { } this.current = found if (data.data.external && this.player) { - this.playerProcess = spawn(this.player, [encodeURI('' + new URL('http://localhost:' + this.server.address().port + found.streamURL))]) + this.playerProcess = spawn(this.player, ['' + new URL('http://localhost:' + this.server.address().port + found.streamURL)]) this.playerProcess.stdout.on('data', () => {}) const startTime = Date.now() this.playerProcess.once('close', () => { diff --git a/electron/package.json b/electron/package.json index f0f8737..d118c3b 100644 --- a/electron/package.json +++ b/electron/package.json @@ -1,6 +1,6 @@ { "name": "Migu", - "version": "5.2.5", + "version": "5.2.6", "private": true, "author": "NoCrypt ", "description": "Stream anime torrents, real-time with no waiting for downloads.", diff --git a/electron/src/main/updater.js b/electron/src/main/updater.js index ef426f9..17d99b5 100644 --- a/electron/src/main/updater.js +++ b/electron/src/main/updater.js @@ -28,6 +28,7 @@ export default class Updater { install () { if (this.hasUpdate) { autoUpdater.quitAndInstall() + this.hasUpdate = false return true } }