mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-18 06:09:58 +00:00
twitch: sanitise video title
This commit is contained in:
parent
d2e124c7cd
commit
158361c95e
1 changed files with 2 additions and 2 deletions
|
@ -67,13 +67,13 @@ export default async function (obj) {
|
||||||
token: req_token[0].data.clip.playbackAccessToken.value
|
token: req_token[0].data.clip.playbackAccessToken.value
|
||||||
})}`,
|
})}`,
|
||||||
fileMetadata: {
|
fileMetadata: {
|
||||||
title: clipMetadata.title,
|
title: cleanString(clipMetadata.title.trim()),
|
||||||
artist: `Twitch Clip by @${clipMetadata.broadcaster.login}, clipped by @${clipMetadata.curator.login}`,
|
artist: `Twitch Clip by @${clipMetadata.broadcaster.login}, clipped by @${clipMetadata.curator.login}`,
|
||||||
},
|
},
|
||||||
filenameAttributes: {
|
filenameAttributes: {
|
||||||
service: "twitch",
|
service: "twitch",
|
||||||
id: clipMetadata.id,
|
id: clipMetadata.id,
|
||||||
title: clipMetadata.title,
|
title: cleanString(clipMetadata.title.trim()),
|
||||||
author: `${clipMetadata.broadcaster.login}, clipped by ${clipMetadata.curator.login}`,
|
author: `${clipMetadata.broadcaster.login}, clipped by ${clipMetadata.curator.login}`,
|
||||||
qualityLabel: `${format.quality}p`,
|
qualityLabel: `${format.quality}p`,
|
||||||
extension: 'mp4'
|
extension: 'mp4'
|
||||||
|
|
Loading…
Reference in a new issue