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:
parent
d36aa68486
commit
127ddd4d8d
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue