Merge pull request #185

#180 Fixed
This commit is contained in:
Mattia 2022-01-11 04:32:53 -08:00 committed by GitHub
commit 103f5aa59f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -53,9 +53,8 @@ class EmbeddedPlayerClient {
'context': const {
'client': {
'hl': 'en',
'clientName': 'WEB',
'clientVersion': '2.20210721.00.00',
"clientScreen": "EMBED"
'clientName': 'ANDROID',
'clientVersion': '16.46.37'
}
},
'videoId': videoId

View File

@ -198,13 +198,13 @@ class StreamsClient {
videoId = VideoId.fromString(videoId);
try {
final context = await _getStreamContextFromWatchPage(videoId);
final context = await _getStreamContextFromEmbeddedClient(videoId);
return _getManifest(context);
} on YoutubeExplodeException {
//TODO: ignore
}
final context = await _getStreamContextFromWatchPage(videoId);
final context = await _getStreamContextFromEmbeddedClient(videoId);
return _getManifest(context);
}