mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-28 07:50:34 +05:30
commit
3cae32b6db
@ -927,8 +927,12 @@ public class YoutubeStreamExtractor extends StreamExtractor {
|
|||||||
streamUrl = formatData.getString("url");
|
streamUrl = formatData.getString("url");
|
||||||
} else {
|
} else {
|
||||||
// this url has an encrypted signature
|
// this url has an encrypted signature
|
||||||
Map<String, String> cipher = Parser.compatParseMap(formatData.getString("cipher"));
|
final String cipherString = formatData.has("cipher")
|
||||||
streamUrl = cipher.get("url") + "&" + cipher.get("sp") + "=" + decryptSignature(cipher.get("s"), decryptionCode);
|
? formatData.getString("cipher")
|
||||||
|
: formatData.getString("signatureCipher");
|
||||||
|
final Map<String, String> cipher = Parser.compatParseMap(cipherString);
|
||||||
|
streamUrl = cipher.get("url") + "&" + cipher.get("sp") + "="
|
||||||
|
+ decryptSignature(cipher.get("s"), decryptionCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
urlAndItags.put(streamUrl, itagItem);
|
urlAndItags.put(streamUrl, itagItem);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user