mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-01-06 01:20:32 +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")) {
|
if (navigationEndpoint.has("urlEndpoint")) {
|
||||||
String internUrl = navigationEndpoint.getObject("urlEndpoint").getString("url");
|
String internUrl = navigationEndpoint.getObject("urlEndpoint").getString("url");
|
||||||
if (internUrl.startsWith("https://www.youtube.com/redirect?")) {
|
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);
|
internUrl = internUrl.substring(23);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user