metascraper-media-provider
v5.49.25
Published
Get video property from HTML markup
Downloads
4,624
Maintainers
Readme
Install
$ npm install metascraper-media-provider --saveAPI
metascraper-media-provider([options])
options
cacheDir
Type: string
It specifies cache based on file system to be used by youtube-dl.
retry
Type: number
Default: 5
The maximum number of retries allowed to perform.
timeout
Type: number
Default: 30000
The maximum time allowed to wait until considering the request as timed out.
args
Type: function
Default: ({ url, flags }) => ({ url, flags })
It defines a function that will determine the arguments to be passed to youtube-dl:
const args = ({ flags, url, retryCount }) => {
flags.addHeader = [`referer:${url}`]
return { url, flags }
}License
metascraper-media-provider © Microlink, released under the MIT License. Authored and maintained by Microlink with help from contributors.
microlink.io · GitHub microlinkhq · X @microlinkhq
