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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 {