diff --git a/lib/src/models/media_streams/video_resolution.dart b/lib/src/models/media_streams/video_resolution.dart index a6124cd..593d543 100644 --- a/lib/src/models/media_streams/video_resolution.dart +++ b/lib/src/models/media_streams/video_resolution.dart @@ -1,7 +1,7 @@ import 'package:equatable/equatable.dart'; /// Width and height of a video. -class VideoResolution extends Equatable{ +class VideoResolution extends Equatable { /// Viewport width. final int width; diff --git a/lib/src/youtube_explode_base.dart b/lib/src/youtube_explode_base.dart index 113c9ad..e050bab 100644 --- a/lib/src/youtube_explode_base.dart +++ b/lib/src/youtube_explode_base.dart @@ -230,7 +230,6 @@ class YoutubeExplode { // Valid configuration if (errorReason.isNullOrWhiteSpace) { - // Extract if it is a live stream. var videoInfo = playerResponseJson['videoDetails']; var video = Video( @@ -244,6 +243,7 @@ class YoutubeExplode { videoInfo['keywords']?.cast() ?? const [], Statistics(int.parse(videoInfo['viewCount']), 0, 0)); + // Extract if it is a live stream. var isLiveStream = playerResponseJson['videoDetails']['isLive'] == true; var streamingData = playerResponseJson['streamingData'];