1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-10-28 13:57:40 +00:00

still fighting with jdk version strings in app/app.iml, .idea/gradle.xml, .idea/misc.xml

This commit is contained in:
Adam Howard
2015-11-03 13:19:23 +00:00
parent 3c72113f4c
commit a18353df5f
5 changed files with 8 additions and 11 deletions

View File

@@ -308,12 +308,9 @@ public class YoutubeExtractor implements Extractor {
private VideoInfo.AudioStream[] parseDashManifest(String dashManifest, String decryptoinCode) {
if(!dashManifest.contains("/signature/")) {
String encryptedSig = "";
String encryptedSig = matchGroup1("/s/([a-fA-F0-9\\.]+)", dashManifest);
String decryptedSig;
//regex methods do not throw runtime exceptions, if their arguments are valid
encryptedSig = matchGroup1("/s/([a-fA-F0-9\\.]+)", dashManifest);
decryptedSig = decryptSignature(encryptedSig, decryptoinCode);
dashManifest = dashManifest.replace("/s/" + encryptedSig, "/signature/" + decryptedSig);
}