get static method
Future<ChannelUploadPage>
get(
- YoutubeHttpClient httpClient,
- String channelId,
- String sorting,
- VideoType type,
Implementation
static Future<ChannelUploadPage> get(
YoutubeHttpClient httpClient,
String channelId,
String sorting,
VideoType type,
) {
final url =
'https://www.youtube.com/channel/$channelId/${type.name}?view=0&sort=$sorting&flow=grid';
return retry(httpClient, () async {
final raw = await httpClient.getString(url);
return ChannelUploadPage.parse(raw, channelId, type);
});
}