api/ok: fix author not being handled properly (#1009)

This commit is contained in:
zjy4fun
2025-02-11 16:42:07 +08:00
committed by GitHub
parent 07947882c4
commit ca0bc9f395

View File

@ -44,7 +44,7 @@ export default async function(o) {
let fileMetadata = {
title: videoData.movie.title.trim(),
author: (videoData.author?.name || videoData.compilationTitle).trim(),
author: (videoData.author?.name || videoData.compilationTitle)?.trim(),
}
if (bestVideo) return {