From 6c314a1a624a7fb6840e394e4ddbf674fbf5c367 Mon Sep 17 00:00:00 2001 From: wukko Date: Sun, 8 Oct 2023 18:31:04 +0600 Subject: [PATCH] well that's just embarrassing --- package.json | 2 +- src/modules/processing/services/streamable.js | 2 +- src/modules/processing/servicesConfig.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index fb1abc15..6b1f672b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "cobalt", "description": "save what you love", - "version": "7.5", + "version": "7.5.1", "author": "wukko", "exports": "./src/cobalt.js", "type": "module", diff --git a/src/modules/processing/services/streamable.js b/src/modules/processing/services/streamable.js index d1f4c4b6..e17a6a28 100644 --- a/src/modules/processing/services/streamable.js +++ b/src/modules/processing/services/streamable.js @@ -3,7 +3,7 @@ export default async function(obj) { if (!video) return { error: 'ErrorEmptyDownload' }; let best = video.files['mp4-mobile']; - if (video.files.mp4 && (obj.isAudioOnly || obj.quality === "max" || obj.quality >= Number("720"))) { + if (video.files.mp4 && (obj.isAudioOnly || obj.quality === "max" || obj.quality >= 720)) { best = video.files.mp4; } diff --git a/src/modules/processing/servicesConfig.json b/src/modules/processing/servicesConfig.json index 95ec5509..0dbe23f1 100644 --- a/src/modules/processing/servicesConfig.json +++ b/src/modules/processing/servicesConfig.json @@ -23,7 +23,7 @@ }, "youtube": { "alias": "youtube videos, shorts & music", - "patterns": ["watch?v=:id", "embed/:id"], + "patterns": ["watch?v=:id", "embed/:id", "watch/:id"], "bestAudio": "opus", "enabled": true },