Fix Google URL detection (#617)
This commit is contained in:
parent
6db4bea8ca
commit
7f202db8b1
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue