Skip to content

Commit 7f202db

Browse files
authored
Fix Google URL detection (#617)
1 parent 6db4bea commit 7f202db

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ private static boolean isGoogleURL(String url) {
9696
try {
9797
final URL u = new URL(url);
9898
final String host = u.getHost();
99-
return host.startsWith("google.") || host.startsWith("m.google.");
99+
return host.startsWith("google.") || host.startsWith("m.google.")
100+
|| host.startsWith("www.google.");
100101
} catch (MalformedURLException e) {
101102
return false;
102103
}

0 commit comments

Comments
 (0)