Lint fixes.

This commit is contained in:
Mattia 2021-07-24 01:31:14 +02:00
parent b0612c52de
commit 782b148216
4 changed files with 9 additions and 13 deletions

View File

@ -32,7 +32,4 @@ class ThumbnailSet with _$ThumbnailSet {
/// Not always available.
String get maxResUrl =>
'https://img.youtube.com/vi/$videoId/maxresdefault.jpg';
@override
List<Object> get props => [videoId];
}

View File

@ -16,13 +16,6 @@ class PlaylistId with _$PlaylistId {
static final _embedCompositeMatchExp =
RegExp(r'youtube\..+?/embed/.*?/.*?list=(.*?)(?:&|/|$)');
const PlaylistId._();
const factory PlaylistId._internal(
/// The playlist id as string.
String value) = _PlaylistId;
/// Initializes an instance of [PlaylistId]
factory PlaylistId(String idOrUrl) {
final id = parsePlaylistId(idOrUrl);
@ -32,6 +25,13 @@ class PlaylistId with _$PlaylistId {
return PlaylistId._internal(id);
}
const PlaylistId._();
const factory PlaylistId._internal(
/// The playlist id as string.
String value) = _PlaylistId;
/// Converts [obj] to a [PlaylistId] by calling .toString on that object.
/// If it is already a [PlaylistId], [obj] is returned
factory PlaylistId.fromString(dynamic obj) {

View File

@ -1,8 +1,8 @@
import 'package:xml/xml.dart' as xml;
import '../retry.dart';
import 'youtube_http_client.dart';
import 'models/stream_info_provider.dart';
import 'youtube_http_client.dart';
///
class DashManifest {
@ -63,6 +63,7 @@ class _StreamInfo extends StreamInfoProvider {
@override
late final String? container = '';
/*
Uri.decodeFull((_containerExp.firstMatch(url)?.group(1))!);*/

View File

@ -1,5 +1,3 @@
import 'package:freezed_annotation/freezed_annotation.dart';
import '../../channels/channel_id.dart';
import '../../reverse_engineering/responses/comments_client.dart' as re;
import '../../reverse_engineering/youtube_http_client.dart';