Skip to content

best way to save what you love

there's a better way to do it oops

wukkob4eddd06fe50
diff --git a/src/modules/processing/services/youtube.js b/src/modules/processing/services/youtube.js
index 91bc1dc1..25266547 100644
--- a/src/modules/processing/services/youtube.js
+++ b/src/modules/processing/services/youtube.js
@@ -73,9 +73,9 @@ export default async function(o) {
};
return r
}
- let checkSingle = (i) => (i['quality_label'] && (i['quality_label'].split('p')[0] === quality || i['quality_label'].split('p')[0] === bestQuality) && i["mime_type"].includes(c[o.format].codec)),
- checkBestVideo = (i) => (i['quality_label'] && i['quality_label'].split('p')[0] === bestQuality && !i["has_audio"] && i["has_video"]),
- checkRightVideo = (i) => (i['quality_label'] && i['quality_label'].split('p')[0] === quality && !i["has_audio"] && i["has_video"]);
+ let checkSingle = (i) => ((i['quality_label'].split('p')[0] === quality || i['quality_label'].split('p')[0] === bestQuality) && i["mime_type"].includes(c[o.format].codec)),
+ checkBestVideo = (i) => (i["has_video"] && !i["has_audio"] && i['quality_label'].split('p')[0] === bestQuality),
+ checkRightVideo = (i) => (i["has_video"] && !i["has_audio"] && i['quality_label'].split('p')[0] === quality);
if (!o.isAudioOnly && !o.isAudioMuted && o.format === 'h264') {
let single = info.streaming_data.formats.find(i => checkSingle(i));