Merge pull request #23 from SongTube/master
base: fix cipher string in streamInfoJson
This commit is contained in:
commit
604afcecd2
|
@ -58,7 +58,7 @@ class YoutubeExplode {
|
||||||
|
|
||||||
if (urlString.isNullOrWhiteSpace &&
|
if (urlString.isNullOrWhiteSpace &&
|
||||||
!playerConfiguration.playerSourceUrl.isNullOrWhiteSpace) {
|
!playerConfiguration.playerSourceUrl.isNullOrWhiteSpace) {
|
||||||
var cipher = streamInfoJson['cipher'] as String;
|
var cipher = streamInfoJson['signatureCipher'] as String;
|
||||||
url = await decipherUrl(
|
url = await decipherUrl(
|
||||||
playerConfiguration.playerSourceUrl, cipher, client);
|
playerConfiguration.playerSourceUrl, cipher, client);
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ class YoutubeExplode {
|
||||||
|
|
||||||
if (urlString.isNullOrWhiteSpace &&
|
if (urlString.isNullOrWhiteSpace &&
|
||||||
!playerConfiguration.playerSourceUrl.isNullOrWhiteSpace) {
|
!playerConfiguration.playerSourceUrl.isNullOrWhiteSpace) {
|
||||||
var cipher = streamInfoJson['cipher'] as String;
|
var cipher = streamInfoJson['signatureCipher'] as String;
|
||||||
url = await decipherUrl(
|
url = await decipherUrl(
|
||||||
playerConfiguration.playerSourceUrl, cipher, client);
|
playerConfiguration.playerSourceUrl, cipher, client);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue