feat: add filename attributes to twitch clips
This commit is contained in:
parent
3c1fedc4ef
commit
e2bcad79aa
1 changed files with 8 additions and 0 deletions
|
@ -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`
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue