Skip to content

Commit

Permalink
Merge pull request #497 from TiA4f8R/fix-player-js-url-redirect
Browse files Browse the repository at this point in the history
Fix YouTube player JavaScript URL redirection
  • Loading branch information
TobiGr authored Dec 27, 2020
2 parents 288ddab + d30caeb commit 3c8c8e7
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 3c8c8e7

Please sign in to comment.