Fix YouTube player JavaScript URL redirection

This commit is contained in:
TiA4f8R 2020-12-24 18:58:45 +01:00
parent 21c6a7884c
commit d30caeb091
No known key found for this signature in database
GPG Key ID: E6D3E7F5949450DD
1 changed files with 2 additions and 2 deletions

View File

@ -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);