Update version

This commit is contained in:
Hexah 2020-06-21 16:54:17 +02:00
parent 61bf4b638b
commit 7f093fa79f
3 changed files with 18 additions and 1 deletions

View File

@ -1,3 +1,6 @@
## 1.3.0
- Added api get youtube comments of a video.
## 1.2.3
- Fix duplicated bytes when downloading a stream. See [#41][Comment41]

View File

@ -15,6 +15,7 @@ YoutubeExplode is a library that provides an interface to query metadata of YouT
- Execute search queries and get resulting videos.
- Get or download video streams.
- Get closed captions.
- Get video comments.
- All model extend `Equatable` to easily perform equality checks
## Differences from YoutubeExplode
@ -28,6 +29,7 @@ YoutubeExplode is a library that provides an interface to query metadata of YouT
- [Downloading a video stream](#downloading-a-video-stream)
- [Working with playlists](#working-with-playlists)
- [Extracting closed captions](#extracting-closed-captions)
- [Getting comments](#getting-comments)
- [Cleanup](#cleanup)
### Install
@ -151,6 +153,18 @@ Similarly, to streams, you can extract closed captions by getting the manifest a
}
```
### Getting comments
You can easily get the video comments of a given video, the comment pages are fetched automatically, and every page has
20 videos (that means that there is no point to take 25 comments to save some resources, but you could just take 40)
```
// Here we are getting the first 20 comments of the video.
// The stream wont close until all the video comments are fetched.
var comments = await yt.videos.commentsClient.getComments(video).take(20).toList()
```
Currently getting comment replies is not supported.
### Cleanup
You need to close `YoutubeExplode`'s http client, when done otherwise this could halt the dart process.

View File

@ -1,6 +1,6 @@
name: youtube_explode_dart
description: A port in dart of the youtube explode library. Supports several API functions without the need of Youtube API Key.
version: 1.2.3
version: 1.3.0
homepage: https://github.com/Hexer10/youtube_explode_dart
environment: