Skip to content

Commit ec2f72a

Browse files
committed
Code cleanup
1 parent 6e9daf8 commit ec2f72a

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

lib/src/channels/channel_client.dart

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import 'video_type.dart';
2-
31
import '../common/common.dart';
42
import '../extensions/helpers_extension.dart';
53
import '../playlists/playlists.dart';
@@ -136,6 +134,7 @@ class ChannelClient {
136134

137135
/// Enumerates videos uploaded by the specified channel.
138136
/// This fetches thru all the uploads pages of the channel.
137+
/// The content by default is sorted by time of upload.
139138
///
140139
/// Use .nextPage() to fetch the next batch of videos.
141140
Future<ChannelUploadsList> getUploadsFromPage(

lib/src/channels/video_sorting.dart

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import 'package:meta/meta.dart';
2+
13
/// Metadata about video are sorted with [ChannelClient.getUploadsFromPage]
24
enum VideoSorting {
35
newest._('dd'),
@@ -6,6 +8,7 @@ enum VideoSorting {
68

79
/// Code used to fetch the video.
810
/// Used internally.
11+
@internal
912
final String code;
1013

1114
const VideoSorting._(this.code);

lib/src/channels/video_type.dart

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/// The type of the video you want to get.
2-
///
3-
/// Will filter only by the type you want.
1+
import 'package:meta/meta.dart';
2+
3+
/// Video types provided by Youtube
44
enum VideoType {
55
/// Default horizontal video
66
normal('videos', 'videoRenderer'),
@@ -9,6 +9,9 @@ enum VideoType {
99
shorts('shorts', 'reelItemRenderer');
1010

1111
final String name;
12+
13+
@internal
1214
final String youtubeRenderText;
15+
1316
const VideoType(this.name, this.youtubeRenderText);
1417
}

pubspec.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ homepage: https://github.com/Hexer10/youtube_explode_dart
55

66
topics:
77
- youtube
8-
- lints
98
- video
109
- streams
1110

0 commit comments

Comments
 (0)