api/ok: fix author not being handled properly

This commit is contained in:
zjy4fun 2024-12-19 15:55:27 +08:00
parent 4cdbb02de2
commit 40fda53b3d

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 {