From 4ac70e69666b46b4d1dce5daeb6344c1012316b3 Mon Sep 17 00:00:00 2001 From: wb9688 Date: Thu, 15 Feb 2018 14:23:45 +0100 Subject: [PATCH] Fix OkHttp --- .../extractor/services/youtube/YoutubeStreamExtractor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractor.java b/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractor.java index 654e09a64..0d2035587 100644 --- a/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractor.java +++ b/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractor.java @@ -678,7 +678,7 @@ public class YoutubeStreamExtractor extends StreamExtractor { String helperPattern = "(var " + helperObjectName.replace("$", "\\$") + "=\\{.+?\\}\\};)"; - helperObject = Parser.matchGroup1(helperPattern, playerCode); + helperObject = Parser.matchGroup1(helperPattern, playerCode.replace("\n", "")); callerFunc = callerFunc.replace("%%", decryptionFuncName);