feat: add filename attributes to twitch clips

This commit is contained in:
Snazzah 2023-10-30 12:14:28 -05:00
parent 3c1fedc4ef
commit e2bcad79aa
No known key found for this signature in database
GPG key ID: EA479766A94CEB61

View file

@ -19,6 +19,7 @@ export default async function (obj) {
}
durationSeconds
id
slug
medium: thumbnailURL(width: 480, height: 272)
title
videoQualities {
@ -70,6 +71,13 @@ export default async function (obj) {
title: clipMetadata.title,
artist: `Twitch Clip by @${clipMetadata.broadcaster.login}, clipped by @${clipMetadata.curator.login}`,
},
filenameAttributes: {
service: "twitch",
id: clipMetadata.id,
title: fileMetadata.title,
author: `${clipMetadata.broadcaster.login}, clipped by ${clipMetadata.curator.login}`,
qualityLabel: `${format.quality}p`
},
filename: `twitchclip_${clipMetadata.id}_${format.quality}p.mp4`,
audioFilename: `twitchclip_${clipMetadata.id}_audio`
}