fix: incorrect path encoding

This commit is contained in:
ThaUnknown 2024-07-07 01:59:23 +02:00
parent 696e2c2193
commit 5abd6faa7a
2 changed files with 2 additions and 2 deletions

View file

@ -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', () => {

View file

@ -1,6 +1,6 @@
{
"name": "Miru",
"version": "5.1.10",
"version": "5.1.11",
"private": true,
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
"description": "Stream anime torrents, real-time with no waiting for downloads.",