services/ok: fallback to compilation title if author name is missing

This commit is contained in:
dumbmoron 2024-07-24 15:52:09 +00:00
parent a6623567e2
commit 0fe85b2ae9
No known key found for this signature in database

View file

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