mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-28 02:26:10 +00: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…
Reference in a new issue