mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 04:39:58 +00:00
services/ok: fallback to compilation title if author name is missing
This commit is contained in:
parent
a6623567e2
commit
0fe85b2ae9
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue