add comment explaining why .substring(23)

This commit is contained in:
bopol 2021-02-13 12:10:41 +01:00
parent 73353996d7
commit 2859c7ba5c

View File

@ -436,6 +436,7 @@ public class YoutubeParsingHelper {
if (navigationEndpoint.has("urlEndpoint")) {
String internUrl = navigationEndpoint.getObject("urlEndpoint").getString("url");
if (internUrl.startsWith("https://www.youtube.com/redirect?")) {
// remove https://www.youtube.com part to fall in the next if block
internUrl = internUrl.substring(23);
}