From 51e40f27cc045c634df6c1034d6272102ba45eb1 Mon Sep 17 00:00:00 2001 From: Mattia Date: Sat, 24 Oct 2020 14:54:42 +0200 Subject: [PATCH] Update tests --- example/example.dart | 2 +- pubspec.yaml | 2 +- test/streams_test.dart | 15 +++------------ 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/example/example.dart b/example/example.dart index 4f939f8..d028956 100644 --- a/example/example.dart +++ b/example/example.dart @@ -3,7 +3,7 @@ import 'package:youtube_explode_dart/youtube_explode_dart.dart'; Future main() async { var yt = YoutubeExplode(); 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}'); diff --git a/pubspec.yaml b/pubspec.yaml index 73f2cfc..7ce73b6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ 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. -version: 1.6.1+1 +version: 1.6.1+2 homepage: https://github.com/Hexer10/youtube_explode_dart environment: diff --git a/test/streams_test.dart b/test/streams_test.dart index 3096bcf..3e51020 100644 --- a/test/streams_test.dart +++ b/test/streams_test.dart @@ -13,11 +13,6 @@ void main() { group('Get streams of any video', () { 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('ZGdLIwrGHG8'), // unlisted VideoId('rsAAeyAr-9Y'), @@ -46,14 +41,10 @@ void main() { group('Get stream of any playable video', () { for (var val in { - VideoId('9bZkp7q19f0'), - VideoId('SkRSXFQerZs'), - VideoId('hySoCSoH-g8'), - VideoId('_kmeFXjjGfk'), - VideoId('MeJVWBSsPAY'), - VideoId('5VGm0dczmHc'), - VideoId('ZGdLIwrGHG8'), + VideoId('5VGm0dczmHc'), // rating is not allowed + VideoId('ZGdLIwrGHG8'), // unlisted VideoId('rsAAeyAr-9Y'), + VideoId('AI7ULzgf8RU') }) { test('VideoId - ${val.value}', () async { var manifest = await yt.videos.streamsClient.getManifest(val);