Update tests
This commit is contained in:
parent
6915005d61
commit
51e40f27cc
|
@ -3,7 +3,7 @@ import 'package:youtube_explode_dart/youtube_explode_dart.dart';
|
||||||
Future<void> main() async {
|
Future<void> main() async {
|
||||||
var yt = YoutubeExplode();
|
var yt = YoutubeExplode();
|
||||||
var video =
|
var video =
|
||||||
await yt.videos.get('https://www.youtube.com/watch?v=bo_efYhYU2A');
|
await yt.videos.get('https://www.youtube.com/watch?v=AI7ULzgf8RU');
|
||||||
|
|
||||||
print('Title: ${video.title}');
|
print('Title: ${video.title}');
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: youtube_explode_dart
|
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.
|
description: A port in dart of the youtube explode library. Supports several API functions without the need of Youtube API Key.
|
||||||
version: 1.6.1+1
|
version: 1.6.1+2
|
||||||
homepage: https://github.com/Hexer10/youtube_explode_dart
|
homepage: https://github.com/Hexer10/youtube_explode_dart
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -13,11 +13,6 @@ void main() {
|
||||||
|
|
||||||
group('Get streams of any video', () {
|
group('Get streams of any video', () {
|
||||||
for (var val in {
|
for (var val in {
|
||||||
VideoId('9bZkp7q19f0'), // very popular
|
|
||||||
VideoId('SkRSXFQerZs'), // age-restricted
|
|
||||||
VideoId('hySoCSoH-g8'),
|
|
||||||
VideoId('_kmeFXjjGfk'),
|
|
||||||
VideoId('MeJVWBSsPAY'),
|
|
||||||
VideoId('5VGm0dczmHc'), // rating is not allowed
|
VideoId('5VGm0dczmHc'), // rating is not allowed
|
||||||
VideoId('ZGdLIwrGHG8'), // unlisted
|
VideoId('ZGdLIwrGHG8'), // unlisted
|
||||||
VideoId('rsAAeyAr-9Y'),
|
VideoId('rsAAeyAr-9Y'),
|
||||||
|
@ -46,14 +41,10 @@ void main() {
|
||||||
|
|
||||||
group('Get stream of any playable video', () {
|
group('Get stream of any playable video', () {
|
||||||
for (var val in {
|
for (var val in {
|
||||||
VideoId('9bZkp7q19f0'),
|
VideoId('5VGm0dczmHc'), // rating is not allowed
|
||||||
VideoId('SkRSXFQerZs'),
|
VideoId('ZGdLIwrGHG8'), // unlisted
|
||||||
VideoId('hySoCSoH-g8'),
|
|
||||||
VideoId('_kmeFXjjGfk'),
|
|
||||||
VideoId('MeJVWBSsPAY'),
|
|
||||||
VideoId('5VGm0dczmHc'),
|
|
||||||
VideoId('ZGdLIwrGHG8'),
|
|
||||||
VideoId('rsAAeyAr-9Y'),
|
VideoId('rsAAeyAr-9Y'),
|
||||||
|
VideoId('AI7ULzgf8RU')
|
||||||
}) {
|
}) {
|
||||||
test('VideoId - ${val.value}', () async {
|
test('VideoId - ${val.value}', () async {
|
||||||
var manifest = await yt.videos.streamsClient.getManifest(val);
|
var manifest = await yt.videos.streamsClient.getManifest(val);
|
||||||
|
|
Loading…
Reference in New Issue