Fetch again the desktop player JSON only if the content is protected by signatureCiphers
This commit is contained in:
parent
7474049fd1
commit
947baec805
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue