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]