From d30caeb0916b9030a5ead8cdec7e134c401a50ac Mon Sep 17 00:00:00 2001 From: TiA4f8R <74829229+TiA4f8R@users.noreply.github.com> Date: Thu, 24 Dec 2020 18:58:45 +0100 Subject: [PATCH] Fix YouTube player JavaScript URL redirection --- .../services/youtube/extractors/YoutubeStreamExtractor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java index 25eb3e89e..5c225a32f 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java @@ -842,8 +842,8 @@ public class YoutubeStreamExtractor extends StreamExtractor { if (playerJsUrl.startsWith("//")) { playerJsUrl = HTTPS + playerJsUrl; } else if (playerJsUrl.startsWith("/")) { - // sometimes https://youtube.com part has to be added manually - playerJsUrl = HTTPS + "//youtube.com" + playerJsUrl; + // sometimes https://www.youtube.com part has to be added manually + playerJsUrl = HTTPS + "//www.youtube.com" + playerJsUrl; } cachedDeobfuscationCode = loadDeobfuscationCode(playerJsUrl);