File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed
lib/src/reverse_engineering Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1- import 'dart:convert' ;
2-
31import 'package:collection/collection.dart' ;
42import 'package:html/parser.dart' as parser;
53
Original file line number Diff line number Diff line change @@ -223,7 +223,8 @@ class YoutubeHttpClient extends http.BaseClient {
223223 final stream = newManifest.streams
224224 .firstWhereOrNull ((e) => e.tag == streamInfo.tag);
225225 if (stream == null ) {
226- _logger.severe ('Error: Could not find the stream in the new manifest (due to Youtube error)' );
226+ _logger.severe (
227+ 'Error: Could not find the stream in the new manifest (due to Youtube error)' );
227228 rethrow ;
228229 }
229230 url = stream.url;
Original file line number Diff line number Diff line change 11import 'package:test/test.dart' ;
22import 'package:youtube_explode_dart/youtube_explode_dart.dart' ;
33
4+ import 'skip_gh.dart' ;
5+
46void main () {
57 YoutubeExplode ? yt;
68 setUpAll (() {
@@ -53,7 +55,7 @@ void main() {
5355 test ('Get metadata of a channel by a video' , () async {
5456 final channel = await yt! .channels.getByVideo (VideoId ('TW_yxPcodhk' ));
5557 expect (channel.id.value, 'UCqKbtOLx4NCBh5KKMSmbX0g' );
56- });
58+ }, skip : skipGH );
5759
5860 test ('Get the videos of a youtube channel' , () async {
5961 final videos = await yt! .channels
Original file line number Diff line number Diff line change 11import 'package:test/test.dart' ;
22import 'package:youtube_explode_dart/youtube_explode_dart.dart' ;
33
4+ import 'skip_gh.dart' ;
5+
46void main () {
57 YoutubeExplode ? yt;
68 setUpAll (() {
@@ -26,12 +28,12 @@ void main() {
2628 final comments = (await yt! .videos.commentsClient.getComments (video))! ;
2729 expect (comments.totalLength, 0 );
2830 expect (comments, isEmpty);
29- });
31+ }, skip : 'Currently broken' );
3032
3133 test ('Video with comments disabled should return null' , () async {
3234 const videoUrl = 'https://www.youtube.com/watch?v=jtHb94_MLEE' ;
3335 final video = await yt! .videos.get (VideoId (videoUrl));
3436 final comments = await yt! .videos.commentsClient.getComments (video);
3537 expect (comments, isNull);
36- });
38+ }, skip : 'Currently broken' );
3739}
You can’t perform that action at this time.
0 commit comments