html data added in video_basic_info function

This commit is contained in:
killer069
2021-11-01 15:22:02 +05:30
parent 76ab060d57
commit 5214250eac
6 changed files with 39 additions and 30 deletions

View File

@@ -50,6 +50,7 @@ let id = extractID(url)
_This are the info options that can be passed as a parameter in `video_info` and `video_basic_info`_
- proxy : Optional parameter to add support of proxies. As of now, HTTPS proxies are only supported. So make sure to get HTTPS proxies only.
- htmldata : `boolean` Set this to true if you are passing a html body as first parameter.
```js
const video = await video_basic_info(url, { proxy : ['url'] }) // Accepts a url which has port in it.
@@ -59,6 +60,10 @@ const video = await video_basic_info(url, {proxy : [{
port : 8080
}]
}) // Or add a json containing hostname and port.
// Use any https package to use proxy and then do this
const video = await video_basic_info(body, { htmldata : true }) // You can use video_info function also.
```
### video_basic_info(url : `string`, options? : [`InfoOptions`](https://github.com/play-dl/play-dl/tree/main/docs/YouTube#infooptions))