Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
CWftw committed May 9, 2020
1 parent 7d292e1 commit 0ddc7da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ private Map<String, ItagItem> getItags(String streamingDataKey, ItagItem.ItagTyp
streamUrl = formatData.getString("url");
} else {
// this url has an encrypted signature
Map<String, String> cipher = Parser.compatParseMap(formatData.getString("cipher"));
Map<String, String> cipher = Parser.compatParseMap(formatData.getString("cipher") == null ? formatData.getString("signatureCipher") : formatData.getString("cipher"));
streamUrl = cipher.get("url") + "&" + cipher.get("sp") + "=" + decryptSignature(cipher.get("s"), decryptionCode);
}

Expand Down

0 comments on commit 0ddc7da

Please sign in to comment.