Typo's & [watchPage] annotation
This commit is contained in:
parent
89c073fd51
commit
0949bb13c1
|
@ -37,7 +37,7 @@ class CommentsClient {
|
||||||
|
|
||||||
return retry(() async {
|
return retry(() async {
|
||||||
var raw = await _httpClient.postString(url, headers: {
|
var raw = await _httpClient.postString(url, headers: {
|
||||||
'x-youtube-client-namE': '1',
|
'x-youtube-client-name': '1',
|
||||||
'x-youtube-client-version': '2.20210622.10.00',
|
'x-youtube-client-version': '2.20210622.10.00',
|
||||||
'cookie':
|
'cookie':
|
||||||
'YSC=$ysc; CONSENT=YES+cb; GPS=1; VISITOR_INFO1_LIVE=$visitorInfoLive',
|
'YSC=$ysc; CONSENT=YES+cb; GPS=1; VISITOR_INFO1_LIVE=$visitorInfoLive',
|
||||||
|
@ -99,7 +99,7 @@ class CommentsClient {
|
||||||
clickTrackingParams =
|
clickTrackingParams =
|
||||||
continuationData.getT<String>('clickTrackingParams');
|
continuationData.getT<String>('clickTrackingParams');
|
||||||
}
|
}
|
||||||
var comment = Comment(
|
yield Comment(
|
||||||
commentRaw.getT<String>('commentId')!,
|
commentRaw.getT<String>('commentId')!,
|
||||||
commentRaw.get('authorText')!.getT<String>('simpleText')!,
|
commentRaw.get('authorText')!.getT<String>('simpleText')!,
|
||||||
ChannelId(commentRaw
|
ChannelId(commentRaw
|
||||||
|
@ -124,7 +124,6 @@ class CommentsClient {
|
||||||
commentRaw.getT<int>('replyCount') ?? 0,
|
commentRaw.getT<int>('replyCount') ?? 0,
|
||||||
continuation,
|
continuation,
|
||||||
clickTrackingParams);
|
clickTrackingParams);
|
||||||
yield comment;
|
|
||||||
}
|
}
|
||||||
var continuationRoot = (data
|
var continuationRoot = (data
|
||||||
.get('response')
|
.get('response')
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import 'dart:collection';
|
import 'dart:collection';
|
||||||
|
|
||||||
import 'package:equatable/equatable.dart';
|
import 'package:equatable/equatable.dart';
|
||||||
|
import 'package:meta/meta.dart';
|
||||||
|
|
||||||
import '../channels/channel_id.dart';
|
import '../channels/channel_id.dart';
|
||||||
import '../common/common.dart';
|
import '../common/common.dart';
|
||||||
|
@ -52,6 +53,7 @@ class Video with EquatableMixin {
|
||||||
|
|
||||||
/// Used internally.
|
/// Used internally.
|
||||||
/// Shouldn't be used in the code.
|
/// Shouldn't be used in the code.
|
||||||
|
@internal
|
||||||
final WatchPage? watchPage;
|
final WatchPage? watchPage;
|
||||||
|
|
||||||
/// Returns true if the watch page is available for this video.
|
/// Returns true if the watch page is available for this video.
|
||||||
|
|
Loading…
Reference in New Issue