Fix an issue with quality selection
This commit is contained in:
parent
83ae835bed
commit
ecca806a58
2 changed files with 13 additions and 10 deletions
|
|
@ -713,13 +713,14 @@ var Getters = {
|
|||
/*
|
||||
* Preference map of quality => youtube formats.
|
||||
* see https://en.wikipedia.org/wiki/Youtube#Quality_and_codecs
|
||||
*
|
||||
* Prefer WebM over MP4, ignore other codecs (e.g. FLV)
|
||||
*/
|
||||
const preference = {
|
||||
"hd1080": [46, 37],
|
||||
"hd720": [22, 45],
|
||||
"large": [44, 35],
|
||||
"medium": [43, 18],
|
||||
"small": [5]
|
||||
"hd720": [45, 22],
|
||||
"large": [44, 59],
|
||||
"medium": [43, 18]
|
||||
};
|
||||
|
||||
var direct = {};
|
||||
|
|
@ -848,10 +849,9 @@ var Getters = {
|
|||
*/
|
||||
const preference = {
|
||||
"hd1080": [46, 37],
|
||||
"hd720": [22, 45],
|
||||
"large": [44, 35],
|
||||
"medium": [43, 18],
|
||||
"small": [5]
|
||||
"hd720": [45, 22],
|
||||
"large": [44, 59],
|
||||
"medium": [43, 18]
|
||||
};
|
||||
|
||||
var direct = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue