Skip to content

Commit 8c1c728

Browse files
committed
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.
1 parent e97a685 commit 8c1c728

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ public static class DeobfuscateException extends ParsingException {
9393
@Nullable
9494
private static String cachedDeobfuscationCode = null;
9595
@Nullable
96-
private String playerJsUrl = null;
96+
private static String playerJsUrl = null;
9797
@Nullable
98-
private String sts = null;
98+
private static String sts = null;
9999
@Nullable
100-
private String playerCode = null;
100+
private static String playerCode = null;
101101

102102
@Nonnull
103103
private final Map<String, String> videoInfoPage = new HashMap<>();

0 commit comments

Comments
 (0)