mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-28 16:00:33 +05:30
Fix unexpected error due to malformed url
This commit is contained in:
parent
6e82a80b26
commit
ddc7f3e33a
@ -114,7 +114,7 @@ public final class YoutubeStreamLinkHandlerFactory extends LinkHandlerFactory {
|
|||||||
try {
|
try {
|
||||||
url = Utils.stringToURL(urlString);
|
url = Utils.stringToURL(urlString);
|
||||||
} catch (final MalformedURLException e) {
|
} catch (final MalformedURLException e) {
|
||||||
throw new IllegalArgumentException("The given URL is not valid");
|
throw new ParsingException("The given URL is not valid", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
final String host = url.getHost();
|
final String host = url.getHost();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user