mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix youtube-dl format fallback
This commit is contained in:
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
Block a user