We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ded6cc4 commit f1595f1Copy full SHA for f1595f1
packages/metascraper-video-provider/index.js
@@ -12,7 +12,11 @@ const getVideoInfo = promisify(youtubedl.getInfo)
12
*/
13
const getVideoUrl = ({formats}) => {
14
const urls = formats
15
- .filter(item => item.ext === 'mp4' || path.extname(item.url).startsWith('.mp4'))
+ .filter(item =>
16
+ item.protocol === 'https' &&
17
+ (item.ext === 'mp4' ||
18
+ path.extname(item.url).startsWith('.mp4'))
19
+ )
20
.map(item => item.url)
21
22
const index = Math.round(urls.length / 2) - 1
0 commit comments