mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-12 05:07:41 +02:00
api/create-filename: don't push youtubeFormat if it doesn't exist
oops
This commit is contained in:
@ -2,16 +2,16 @@ export default (f, style, isAudioOnly, isAudioMuted) => {
|
||||
let filename = '';
|
||||
|
||||
let infoBase = [f.service, f.id];
|
||||
|
||||
let classicTags = infoBase.concat([
|
||||
f.resolution,
|
||||
f.youtubeFormat,
|
||||
]);
|
||||
|
||||
let basicTags = [f.qualityLabel, f.youtubeFormat];
|
||||
let classicTags = [...infoBase, f.resolution];
|
||||
let basicTags = [f.qualityLabel];
|
||||
|
||||
const title = `${f.title} - ${f.author}`;
|
||||
|
||||
if (f.youtubeFormat) {
|
||||
classicTags.push(f.youtubeFormat);
|
||||
basicTags.push(f.youtubeFormat);
|
||||
}
|
||||
|
||||
if (isAudioMuted) {
|
||||
classicTags.push("mute");
|
||||
basicTags.push("mute");
|
||||
|
Reference in New Issue
Block a user