From 8f27876aeecbcbd8ed5e8cd7b05b85c43155e3fe Mon Sep 17 00:00:00 2001 From: wukko Date: Sat, 29 Apr 2023 17:11:09 +0600 Subject: [PATCH] bumped version up to 5.4.5 --- package.json | 4 ++-- src/modules/processing/services/twitter.js | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9a3fafd6..019b94aa 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "cobalt", "description": "save what you love", - "version": "5.4.4", + "version": "5.4.5", "author": "wukko", "exports": "./src/cobalt.js", "type": "module", @@ -34,6 +34,6 @@ "node-cache": "^5.1.2", "url-pattern": "1.0.3", "xml-js": "^1.6.11", - "youtubei.js": "5.0.0" + "youtubei.js": "^5.0.0" } } diff --git a/src/modules/processing/services/twitter.js b/src/modules/processing/services/twitter.js index 1f7d23f6..6cd8b4fd 100644 --- a/src/modules/processing/services/twitter.js +++ b/src/modules/processing/services/twitter.js @@ -1,5 +1,4 @@ import { genericUserAgent } from "../../config.js"; -import crypto from "crypto"; function bestQuality(arr) { return arr.filter((v) => { if (v["content_type"] === "video/mp4") return true }).sort((a, b) => Number(b.bitrate) - Number(a.bitrate))[0]["url"].split("?")[0]