mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-31 22:10:13 +02:00
well that's just embarrassing
This commit is contained in:
parent
bfc453fdc4
commit
6c314a1a62
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "cobalt",
|
"name": "cobalt",
|
||||||
"description": "save what you love",
|
"description": "save what you love",
|
||||||
"version": "7.5",
|
"version": "7.5.1",
|
||||||
"author": "wukko",
|
"author": "wukko",
|
||||||
"exports": "./src/cobalt.js",
|
"exports": "./src/cobalt.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
@ -3,7 +3,7 @@ export default async function(obj) {
|
|||||||
if (!video) return { error: 'ErrorEmptyDownload' };
|
if (!video) return { error: 'ErrorEmptyDownload' };
|
||||||
|
|
||||||
let best = video.files['mp4-mobile'];
|
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;
|
best = video.files.mp4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
},
|
},
|
||||||
"youtube": {
|
"youtube": {
|
||||||
"alias": "youtube videos, shorts & music",
|
"alias": "youtube videos, shorts & music",
|
||||||
"patterns": ["watch?v=:id", "embed/:id"],
|
"patterns": ["watch?v=:id", "embed/:id", "watch/:id"],
|
||||||
"bestAudio": "opus",
|
"bestAudio": "opus",
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user