mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-28 07:50:34 +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
|
// 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
|
// download it again only if we didn't have a signatureTimestamp before fetching the
|
||||||
// data of this video (the sts string).
|
// data of this video (the sts string).
|
||||||
if (!stsKnown) {
|
if (!stsKnown && isCipherProtectedContent()) {
|
||||||
sts = getStsFromPlayerJs();
|
sts = getStsFromPlayerJs();
|
||||||
final JsonObject playerResponseWithSignatureTimestamp = getJsonPostResponse(
|
final JsonObject playerResponseWithSignatureTimestamp = getJsonPostResponse(
|
||||||
"player", createPlayerBodyWithSts(localization, contentCountry, videoId),
|
"player", createPlayerBodyWithSts(localization, contentCountry, videoId),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user