From 8c1c7281b05e2d461033273d7e91fa1f1f25aacc Mon Sep 17 00:00:00 2001 From: TiA4f8R <74829229+TiA4f8R@users.noreply.github.com> Date: Sat, 5 Jun 2021 18:22:18 +0200 Subject: [PATCH] Real fix of the fetch of the JS player at each the signatureTimestamp is required The strings playerJsUrl, sts and playerCode are now static in order to don't fetch again the JavaScript player at each time the signatureTimestamp is needed. --- .../services/youtube/extractors/YoutubeStreamExtractor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java index d0d27fe1..de39f239 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java @@ -93,11 +93,11 @@ public class YoutubeStreamExtractor extends StreamExtractor { @Nullable private static String cachedDeobfuscationCode = null; @Nullable - private String playerJsUrl = null; + private static String playerJsUrl = null; @Nullable - private String sts = null; + private static String sts = null; @Nullable - private String playerCode = null; + private static String playerCode = null; @Nonnull private final Map videoInfoPage = new HashMap<>();