Skip to content

Commit

Permalink
[YouTube] Don't escape & in getUrlFromNavigationEndpoint for playlists
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangRongLin committed Dec 12, 2020
1 parent a338e4e commit f90f6fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ public static String getUrlFromNavigationEndpoint(JsonObject navigationEndpoint)
StringBuilder url = new StringBuilder();
url.append("https://www.youtube.com/watch?v=").append(navigationEndpoint.getObject("watchEndpoint").getString("videoId"));
if (navigationEndpoint.getObject("watchEndpoint").has("playlistId")) {
url.append("&list=").append(navigationEndpoint.getObject("watchEndpoint")
url.append("&list=").append(navigationEndpoint.getObject("watchEndpoint")
.getString("playlistId"));
}
if (navigationEndpoint.getObject("watchEndpoint").has("startTimeSeconds")) {
Expand Down

0 comments on commit f90f6fc

Please sign in to comment.