From e2bcad79aa35843da18f35fba09669789ac2a1db Mon Sep 17 00:00:00 2001 From: Snazzah Date: Mon, 30 Oct 2023 12:14:28 -0500 Subject: [PATCH] feat: add filename attributes to twitch clips --- src/modules/processing/services/twitch.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/modules/processing/services/twitch.js b/src/modules/processing/services/twitch.js index 6d7e6d94..4a4d5b60 100644 --- a/src/modules/processing/services/twitch.js +++ b/src/modules/processing/services/twitch.js @@ -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` }