mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-22 19:09:00 +02: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 = {
|
||||
title: cleanString(videoData.movie.title.trim()),
|
||||
author: cleanString(videoData.author.name.trim()),
|
||||
author: cleanString((videoData.author?.name || videoData.compilationTitle).trim()),
|
||||
}
|
||||
|
||||
if (bestVideo) return {
|
||||
|
Loading…
x
Reference in New Issue
Block a user