reddit is back!

- fixed reddit support (i had no idea older posts had a different naming pattern for media files)
- improved russian localisation
- now frontend handles more unexpected api errors in case something goes absolutely wrong
This commit is contained in:
wukko
2022-07-22 14:05:36 +06:00
parent 86d45f63c9
commit 8d275b0213
10 changed files with 59 additions and 42 deletions

View File

@@ -15,7 +15,7 @@ export function createStream(obj) {
id: streamUUID,
service: obj.service,
type: obj.type,
urls: obj.urls,
urls: obj.u,
filename: obj.filename,
hmac: ghmac,
ip: iphmac,

View File

@@ -42,7 +42,8 @@ export async function streamLiveRender(streamInfo, res) {
'-map', '1:a',
];
args = args.concat(ffmpegArgs[format])
args.push('-t', msToTime(streamInfo.time), '-f', format, 'pipe:5');
if (streamInfo.time) args.push('-t', msToTime(streamInfo.time));
args.push('-f', format, 'pipe:5');
const ffmpegProcess = spawn(ffmpeg, args, {
windowsHide: true,
stdio: [