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.
This commit is contained in:
TiA4f8R 2021-06-05 18:22:18 +02:00
parent e97a685989
commit 8c1c7281b0
No known key found for this signature in database
GPG Key ID: E6D3E7F5949450DD
1 changed files with 3 additions and 3 deletions

View File

@ -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<String, String> videoInfoPage = new HashMap<>();