Version 1.9.2+1
- Implement `videoThumbnail` in `ChannelVideo`.
This commit is contained in:
parent
b80ca9c051
commit
1976d83588
|
@ -1,3 +1,6 @@
|
|||
## 1.9.2+1
|
||||
- Implement `videoThumbnail` in `ChannelVideo`.
|
||||
|
||||
## 1.9.2
|
||||
- Implement `videoDuration` in `ChannelVideo`.
|
||||
|
||||
|
|
|
@ -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)';
|
||||
|
|
|
@ -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') ??
|
||||
'');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue