Skip to content

Commit

Permalink
Fix YouTube player JavaScript URL redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
AudricV committed Dec 25, 2020
1 parent b283769 commit 9a0ff7d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -842,8 +842,8 @@ private String getDeobfuscationCode() throws ParsingException {
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);
Expand Down

0 comments on commit 9a0ff7d

Please sign in to comment.