mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-17 22:00:00 +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
1 changed files with 5 additions and 1 deletions
|
@ -25,7 +25,11 @@ const c = {
|
||||||
export default async function(o) {
|
export default async function(o) {
|
||||||
let info, isDubbed, quality = o.quality === "max" ? "9000" : o.quality; //set quality 9000(p) to be interpreted as max
|
let info, isDubbed, quality = o.quality === "max" ? "9000" : o.quality; //set quality 9000(p) to be interpreted as max
|
||||||
function qual(i) {
|
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 {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue