From 995738680c025b43ca4ca6605e3353395dbf7cb0 Mon Sep 17 00:00:00 2001 From: Mattia Date: Sun, 12 Jul 2020 18:24:22 +0200 Subject: [PATCH] Implement #40 --- CHANGELOG.md | 3 ++ lib/src/channels/channel_client.dart | 34 ++++++++++++++++-- lib/src/channels/channel_video.dart | 2 +- lib/src/channels/channels.dart | 1 + lib/src/channels/video_sorting.dart | 17 +++++++++ .../responses/channel_upload_page.dart | 36 +++++++++++++------ pubspec.yaml | 2 +- 7 files changed, 80 insertions(+), 15 deletions(-) create mode 100644 lib/src/channels/video_sorting.dart diff --git a/CHANGELOG.md b/CHANGELOG.md index 05b6ec5..edb44a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.4.1 +- Implement `getUploadsFromPage` to a channel uploaded videos directly from the YouTube page. + ## 1.4.0 - Add ChannelId property to Video class. - Implement `thumbnails` for playlists. The playlist's thumbnail is the same as the thumbnail of its first video. If the playlist is empty, then this property is `null`. diff --git a/lib/src/channels/channel_client.dart b/lib/src/channels/channel_client.dart index 0ccab6c..c34cfd7 100644 --- a/lib/src/channels/channel_client.dart +++ b/lib/src/channels/channel_client.dart @@ -1,3 +1,7 @@ +import 'package:youtube_explode_dart/src/channels/channel_video.dart'; +import 'package:youtube_explode_dart/src/channels/video_sorting.dart'; +import 'package:youtube_explode_dart/src/reverse_engineering/responses/channel_upload_page.dart'; + import '../extensions/helpers_extension.dart'; import '../playlists/playlists.dart'; import '../reverse_engineering/responses/responses.dart'; @@ -50,8 +54,34 @@ class ChannelClient { } /// Enumerates videos uploaded by the specified channel. - Stream