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
|
||||
})}`,
|
||||
fileMetadata: {
|
||||
title: clipMetadata.title,
|
||||
title: cleanString(clipMetadata.title.trim()),
|
||||
artist: `Twitch Clip by @${clipMetadata.broadcaster.login}, clipped by @${clipMetadata.curator.login}`,
|
||||
},
|
||||
filenameAttributes: {
|
||||
service: "twitch",
|
||||
id: clipMetadata.id,
|
||||
title: clipMetadata.title,
|
||||
title: cleanString(clipMetadata.title.trim()),
|
||||
author: `${clipMetadata.broadcaster.login}, clipped by ${clipMetadata.curator.login}`,
|
||||
qualityLabel: `${format.quality}p`,
|
||||
extension: 'mp4'
|
||||
|
|
Loading…
Reference in a new issue