Skip to content

Commit 947baec

Browse files
committed
Fetch again the desktop player JSON only if the content is protected by signatureCiphers
1 parent 7474049 commit 947baec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ private void fetchAndroidMobileJsonPlayer(final ContentCountry contentCountry,
832832
// The cipher signatures from the player endpoint without a timestamp are invalid so
833833
// download it again only if we didn't have a signatureTimestamp before fetching the
834834
// data of this video (the sts string).
835-
if (!stsKnown) {
835+
if (!stsKnown && isCipherProtectedContent()) {
836836
sts = getStsFromPlayerJs();
837837
final JsonObject playerResponseWithSignatureTimestamp = getJsonPostResponse(
838838
"player", createPlayerBodyWithSts(localization, contentCountry, videoId),

0 commit comments

Comments
 (0)