base: fix cipher string in streamInfoJson

The Cipher from the streamInfoJson is now called signatureCipher.

This fixes getVideoMediaStream returning null.
This commit is contained in:
Jesus Acosta 2020-05-31 08:25:33 -04:00 committed by GitHub
parent d36aa68486
commit 127ddd4d8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ class YoutubeExplode {
if (urlString.isNullOrWhiteSpace &&
!playerConfiguration.playerSourceUrl.isNullOrWhiteSpace) {
var cipher = streamInfoJson['cipher'] as String;
var cipher = streamInfoJson['signatureCipher'] as String;
url = await decipherUrl(
playerConfiguration.playerSourceUrl, cipher, client);
}
@ -122,7 +122,7 @@ class YoutubeExplode {
if (urlString.isNullOrWhiteSpace &&
!playerConfiguration.playerSourceUrl.isNullOrWhiteSpace) {
var cipher = streamInfoJson['cipher'] as String;
var cipher = streamInfoJson['signatureCipher'] as String;
url = await decipherUrl(
playerConfiguration.playerSourceUrl, cipher, client);
}