mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 09:28:29 +00:00
services/ok: fallback to compilation title if author name is missing
This commit is contained in:
parent
a6623567e2
commit
0fe85b2ae9
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user