added support playlists on Invidio
This commit is contained in:
parent
cce5e4ad33
commit
10939efcce
|
@ -25,7 +25,8 @@ public class YoutubePlaylistLinkHandlerFactory extends ListLinkHandlerFactory {
|
||||||
try {
|
try {
|
||||||
URL urlObj = Utils.stringToURL(url);
|
URL urlObj = Utils.stringToURL(url);
|
||||||
|
|
||||||
if (!Utils.isHTTP(urlObj) || !YoutubeParsingHelper.isYoutubeURL(urlObj)) {
|
if (!Utils.isHTTP(urlObj) || !(YoutubeParsingHelper.isYoutubeURL(urlObj)
|
||||||
|
|| YoutubeParsingHelper.isInvidioURL(urlObj))) {
|
||||||
throw new ParsingException("the url given is not a Youtube-URL");
|
throw new ParsingException("the url given is not a Youtube-URL");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue