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

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;
}