added support playlists on Invidio

This commit is contained in:
Connectety-L 2019-01-27 01:44:46 +01:00
parent cce5e4ad33
commit 10939efcce
No known key found for this signature in database
GPG Key ID: 853F15C538FCE6DF
1 changed files with 2 additions and 1 deletions

View File

@ -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");
} }