dartfmt and comment fix

This commit is contained in:
Hexah 2020-02-28 20:32:37 +01:00
parent 4fb0820ef3
commit f3480b5582
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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<String>() ?? const <String>[],
Statistics(int.parse(videoInfo['viewCount']), 0, 0));
// Extract if it is a live stream.
var isLiveStream = playerResponseJson['videoDetails']['isLive'] == true;
var streamingData = playerResponseJson['streamingData'];