mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-03 23:54:27 +02:00
api/create-filename: don't require author for pretty title
This commit is contained in:
parent
55c97f77b8
commit
eee9beef91
@ -15,7 +15,11 @@ export default (f, style, isAudioOnly, isAudioMuted) => {
|
|||||||
let classicTags = [...infoBase];
|
let classicTags = [...infoBase];
|
||||||
let basicTags = [];
|
let basicTags = [];
|
||||||
|
|
||||||
const title = `${sanitizeString(f.title)} - ${sanitizeString(f.author)}`;
|
let title = sanitizeString(f.title);
|
||||||
|
|
||||||
|
if (f.author) {
|
||||||
|
title += ` - ${sanitizeString(f.author)}`;
|
||||||
|
}
|
||||||
|
|
||||||
if (f.resolution) {
|
if (f.resolution) {
|
||||||
classicTags.push(f.resolution);
|
classicTags.push(f.resolution);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user