mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-13 22:00: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 {
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user