mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-08 19:56:34 +01:00
api/create-filename: don't require author for pretty title
This commit is contained in:
parent
55c97f77b8
commit
eee9beef91
1 changed files with 5 additions and 1 deletions
|
@ -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