Fix Google URL detection (#617)

This commit is contained in:
Tobi 2021-04-26 11:49:47 +02:00 committed by GitHub
parent 6db4bea8ca
commit 7f202db8b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -96,7 +96,8 @@ public class YoutubeParsingHelper {
try {
final URL u = new URL(url);
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) {
return false;
}