Merge pull request #23 from SongTube/master

base: fix cipher string in streamInfoJson
This commit is contained in:
Mattia 2020-05-31 23:33:05 +02:00 committed by GitHub
commit 604afcecd2
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);
}