mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-27 23:40:36 +05:30
Fetch again the desktop player JSON only if the content is protected by signatureCiphers
This commit is contained in:
parent
7474049fd1
commit
947baec805
@ -832,7 +832,7 @@ public class YoutubeStreamExtractor extends StreamExtractor {
|
||||
// The cipher signatures from the player endpoint without a timestamp are invalid so
|
||||
// download it again only if we didn't have a signatureTimestamp before fetching the
|
||||
// data of this video (the sts string).
|
||||
if (!stsKnown) {
|
||||
if (!stsKnown && isCipherProtectedContent()) {
|
||||
sts = getStsFromPlayerJs();
|
||||
final JsonObject playerResponseWithSignatureTimestamp = getJsonPostResponse(
|
||||
"player", createPlayerBodyWithSts(localization, contentCountry, videoId),
|
||||
|
Loading…
x
Reference in New Issue
Block a user