mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-29 11:06:10 +00:00
youtube: ignore audio tracks when quality matching
merge pull request #340 from dumbmoron/yt-fix-quality-match
This commit is contained in:
commit
0c83522356
|
@ -25,7 +25,11 @@ const c = {
|
|||
export default async function(o) {
|
||||
let info, isDubbed, quality = o.quality === "max" ? "9000" : o.quality; //set quality 9000(p) to be interpreted as max
|
||||
function qual(i) {
|
||||
return i['quality_label'].split('p')[0].split('s')[0]
|
||||
if (!i.quality_label) {
|
||||
return;
|
||||
}
|
||||
|
||||
return i.quality_label.split('p')[0].split('s')[0]
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue