api/create-filename: don't push youtubeFormat if it doesn't exist
oops
This commit is contained in:
parent
4af48dd2f9
commit
64173f7a03
1 changed files with 7 additions and 7 deletions
|
@ -2,16 +2,16 @@ export default (f, style, isAudioOnly, isAudioMuted) => {
|
||||||
let filename = '';
|
let filename = '';
|
||||||
|
|
||||||
let infoBase = [f.service, f.id];
|
let infoBase = [f.service, f.id];
|
||||||
|
let classicTags = [...infoBase, f.resolution];
|
||||||
let classicTags = infoBase.concat([
|
let basicTags = [f.qualityLabel];
|
||||||
f.resolution,
|
|
||||||
f.youtubeFormat,
|
|
||||||
]);
|
|
||||||
|
|
||||||
let basicTags = [f.qualityLabel, f.youtubeFormat];
|
|
||||||
|
|
||||||
const title = `${f.title} - ${f.author}`;
|
const title = `${f.title} - ${f.author}`;
|
||||||
|
|
||||||
|
if (f.youtubeFormat) {
|
||||||
|
classicTags.push(f.youtubeFormat);
|
||||||
|
basicTags.push(f.youtubeFormat);
|
||||||
|
}
|
||||||
|
|
||||||
if (isAudioMuted) {
|
if (isAudioMuted) {
|
||||||
classicTags.push("mute");
|
classicTags.push("mute");
|
||||||
basicTags.push("mute");
|
basicTags.push("mute");
|
||||||
|
|
Loading…
Reference in a new issue