mirror of
https://github.com/snobu/destreamer.git
synced 2026-01-19 06:22:18 +00:00
Fix line breaks for ffmpeg cmd
This commit is contained in:
@@ -3,9 +3,9 @@ import { execSync } from 'child_process';
|
||||
|
||||
|
||||
export function drawThumbnail(posterImage: string, accessToken: string): void {
|
||||
let fetchCmd = `ffmpeg -hide_banner -loglevel warning ` +
|
||||
`-headers "Authorization: Bearer ${accessToken}\r\n" ` +
|
||||
`-i "${posterImage}" -y .thumbnail.png`;
|
||||
let fetchCmd = `ffmpeg -hide_banner -loglevel warning \
|
||||
-headers "Authorization: Bearer ${accessToken}" \
|
||||
-i "${posterImage}" -y .thumbnail.png`;
|
||||
execSync(fetchCmd, { stdio: 'inherit' });
|
||||
try {
|
||||
term.drawImage('.thumbnail.png', { shrink: { width: 50, height: 50 } });
|
||||
|
||||
Reference in New Issue
Block a user