mirror of https://github.com/Chocobozzz/PeerTube
Fix youtube-dl format fallback
parent
1d22d2514f
commit
a8a63b1ffe
|
@ -126,7 +126,8 @@ function getYoutubeDLVideoFormat () {
|
|||
`bestvideo[vcodec!*=av01][vcodec!*=vp9.2][height=${resolution}]+bestaudio`, // case #2
|
||||
`bestvideo[vcodec^=avc1][height<=${resolution}]+bestaudio[ext=m4a]`, // case #3
|
||||
`bestvideo[vcodec!*=av01][vcodec!*=vp9.2]+bestaudio`,
|
||||
'best[vcodec!*=av01][vcodec!*=vp9.2]' // case fallback
|
||||
'best[vcodec!*=av01][vcodec!*=vp9.2]', // case fallback for known formats
|
||||
'best' // Ultimate fallback
|
||||
].join('/')
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue