mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-14 14:20:33 +05:30
add comment explaining why .substring(23)
This commit is contained in:
parent
73353996d7
commit
2859c7ba5c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user