bumped version up to 5.4.5

This commit is contained in:
wukko 2023-04-29 17:11:09 +06:00
parent ce6aa0e1ce
commit 8f27876aee
2 changed files with 2 additions and 3 deletions

View file

@ -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"
}
}

View file

@ -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]