diff --git a/common/modules/webtorrent.js b/common/modules/webtorrent.js index 5c88fc1..bec843e 100644 --- a/common/modules/webtorrent.js +++ b/common/modules/webtorrent.js @@ -263,7 +263,7 @@ export default class TorrentClient extends WebTorrent { } this.current = found if (data.data.external && this.player) { - this.playerProcess = spawn(this.player, [encodeURI('http://localhost:' + this.server.address().port + found.streamURL)]) + this.playerProcess = spawn(this.player, [encodeURI('' + 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 8bd7964..bc960e8 100644 --- a/electron/package.json +++ b/electron/package.json @@ -1,6 +1,6 @@ { "name": "Miru", - "version": "5.1.10", + "version": "5.1.11", "private": true, "author": "ThaUnknown_ ", "description": "Stream anime torrents, real-time with no waiting for downloads.",