mirror of
https://github.com/snobu/destreamer.git
synced 2026-02-12 17:49:42 +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 {
|
export function drawThumbnail(posterImage: string, accessToken: string): void {
|
||||||
let fetchCmd = `ffmpeg -hide_banner -loglevel warning ` +
|
let fetchCmd = `ffmpeg -hide_banner -loglevel warning \
|
||||||
`-headers "Authorization: Bearer ${accessToken}\r\n" ` +
|
-headers "Authorization: Bearer ${accessToken}" \
|
||||||
`-i "${posterImage}" -y .thumbnail.png`;
|
-i "${posterImage}" -y .thumbnail.png`;
|
||||||
execSync(fetchCmd, { stdio: 'inherit' });
|
execSync(fetchCmd, { stdio: 'inherit' });
|
||||||
try {
|
try {
|
||||||
term.drawImage('.thumbnail.png', { shrink: { width: 50, height: 50 } });
|
term.drawImage('.thumbnail.png', { shrink: { width: 50, height: 50 } });
|
||||||
|
|||||||
Reference in New Issue
Block a user