Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexer10 committed Jan 15, 2024
1 parent 6e9daf8 commit ec2f72a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 1 addition & 2 deletions lib/src/channels/channel_client.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'video_type.dart';

import '../common/common.dart';
import '../extensions/helpers_extension.dart';
import '../playlists/playlists.dart';
Expand Down Expand Up @@ -136,6 +134,7 @@ class ChannelClient {

/// Enumerates videos uploaded by the specified channel.
/// This fetches thru all the uploads pages of the channel.
/// The content by default is sorted by time of upload.
///
/// Use .nextPage() to fetch the next batch of videos.
Future<ChannelUploadsList> getUploadsFromPage(
Expand Down
3 changes: 3 additions & 0 deletions lib/src/channels/video_sorting.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'package:meta/meta.dart';

/// Metadata about video are sorted with [ChannelClient.getUploadsFromPage]
enum VideoSorting {
newest._('dd'),
Expand All @@ -6,6 +8,7 @@ enum VideoSorting {

/// Code used to fetch the video.
/// Used internally.
@internal
final String code;

const VideoSorting._(this.code);
Expand Down
9 changes: 6 additions & 3 deletions lib/src/channels/video_type.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// The type of the video you want to get.
///
/// Will filter only by the type you want.
import 'package:meta/meta.dart';

/// Video types provided by Youtube
enum VideoType {
/// Default horizontal video
normal('videos', 'videoRenderer'),
Expand All @@ -9,6 +9,9 @@ enum VideoType {
shorts('shorts', 'reelItemRenderer');

final String name;

@internal
final String youtubeRenderText;

const VideoType(this.name, this.youtubeRenderText);
}
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ homepage: https://github.com/Hexer10/youtube_explode_dart

topics:
- youtube
- lints
- video
- streams

Expand Down

0 comments on commit ec2f72a

Please sign in to comment.