Version 1.9.2+1

- Implement `videoThumbnail` in `ChannelVideo`.
This commit is contained in:
Mattia 2021-04-29 15:32:39 +02:00
parent b80ca9c051
commit 1976d83588
4 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,6 @@
## 1.9.2+1
- Implement `videoThumbnail` in `ChannelVideo`.
## 1.9.2
- Implement `videoDuration` in `ChannelVideo`.

View File

@ -12,8 +12,11 @@ class ChannelVideo with EquatableMixin {
/// Video duration
final Duration videoDuration;
/// Video thumbnail
final String videoThumbnail;
/// Initialize an instance of [ChannelVideo]
ChannelVideo(this.videoId, this.videoTitle, this.videoDuration);
ChannelVideo(this.videoId, this.videoTitle, this.videoDuration, this.videoThumbnail);
@override
String toString() => '[ChannelVideo] $videoTitle ($videoId)';

View File

@ -174,7 +174,13 @@ class _InitialData {
?.get('text')
?.getT<String>('simpleText')
?.toDuration() ??
Duration.zero);
Duration.zero,
video
.get('thubnail')
?.getList('thumbnails')
?.last
.getT<String>('url') ??
'');
}
}

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.9.2
version: 1.9.2+1
homepage: https://github.com/Hexer10/youtube_explode_dart