mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-13 05:37:44 +02:00
api/stream: stfu deepsource
This commit is contained in:
@ -29,7 +29,7 @@ const convertMetadataToFFmpeg = (metadata) => {
|
|||||||
|
|
||||||
for (const [ name, value ] of Object.entries(metadata)) {
|
for (const [ name, value ] of Object.entries(metadata)) {
|
||||||
if (metadataTags.includes(name)) {
|
if (metadataTags.includes(name)) {
|
||||||
args.push('-metadata', `${name}=${value.replace(/[\u0000-\u0009]/g, "")}`);
|
args.push('-metadata', `${name}=${value.replace(/[\u0000-\u0009]/g, "")}`); // skipcq: JS-0004
|
||||||
} else {
|
} else {
|
||||||
throw `${name} metadata tag is not supported.`;
|
throw `${name} metadata tag is not supported.`;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user