mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-01-06 01:20:32 +05:30
Fix Google URL detection (#617)
This commit is contained in:
parent
6db4bea8ca
commit
7f202db8b1
@ -96,7 +96,8 @@ public class YoutubeParsingHelper {
|
|||||||
try {
|
try {
|
||||||
final URL u = new URL(url);
|
final URL u = new URL(url);
|
||||||
final String host = u.getHost();
|
final String host = u.getHost();
|
||||||
return host.startsWith("google.") || host.startsWith("m.google.");
|
return host.startsWith("google.") || host.startsWith("m.google.")
|
||||||
|
|| host.startsWith("www.google.");
|
||||||
} catch (MalformedURLException e) {
|
} catch (MalformedURLException e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user