diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 0833b17cd..bd4202cb3 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -6,7 +6,7 @@ - + diff --git a/.idea/misc.xml b/.idea/misc.xml index 1a3eaffb4..5d1998103 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -37,7 +37,7 @@ - + diff --git a/app/.gitignore b/app/.gitignore index a7d25c7ea..0d0d2abc0 100644 --- a/app/.gitignore +++ b/app/.gitignore @@ -1,3 +1,3 @@ .gitignore /build - +#app/app.iml diff --git a/app/app.iml b/app/app.iml index eefc8deb7..58221a4e6 100644 --- a/app/app.iml +++ b/app/app.iml @@ -92,12 +92,12 @@ - - - - + + + + \ No newline at end of file diff --git a/app/src/main/java/org/schabi/newpipe/youtube/YoutubeExtractor.java b/app/src/main/java/org/schabi/newpipe/youtube/YoutubeExtractor.java index 4cacde7c1..223b200e3 100644 --- a/app/src/main/java/org/schabi/newpipe/youtube/YoutubeExtractor.java +++ b/app/src/main/java/org/schabi/newpipe/youtube/YoutubeExtractor.java @@ -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); }