Skip to content

Commit

Permalink
api/create-filename: don't require author for pretty title
Browse files Browse the repository at this point in the history
  • Loading branch information
wukko committed Nov 28, 2024
1 parent 55c97f7 commit eee9bee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/src/processing/create-filename.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ export default (f, style, isAudioOnly, isAudioMuted) => {
let classicTags = [...infoBase];
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) {
classicTags.push(f.resolution);
Expand Down

0 comments on commit eee9bee

Please sign in to comment.