Skip to content

Commit abee0a8

Browse files
committed
Fix typos in YoutubePlaylistLinkHandlerFactory
1 parent 942d840 commit abee0a8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/linkHandler/YoutubePlaylistLinkHandlerFactory.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public String getId(final String url) throws ParsingException {
3333

3434
if (!Utils.isHTTP(urlObj) || !(YoutubeParsingHelper.isYoutubeURL(urlObj)
3535
|| YoutubeParsingHelper.isInvidioURL(urlObj))) {
36-
throw new ParsingException("the url given is not a Youtube-URL");
36+
throw new ParsingException("the url given is not a YouTube-URL");
3737
}
3838

3939
final String path = urlObj.getPath();
@@ -44,7 +44,7 @@ public String getId(final String url) throws ParsingException {
4444
final String listID = Utils.getQueryValue(urlObj, "list");
4545

4646
if (listID == null) {
47-
throw new ParsingException("the url given does not include a playlist");
47+
throw new ParsingException("the URL given does not include a playlist");
4848
}
4949

5050
if (!listID.matches("[a-zA-Z0-9_-]{10,}")) {
@@ -65,7 +65,7 @@ public String getId(final String url) throws ParsingException {
6565

6666
return listID;
6767
} catch (final Exception exception) {
68-
throw new ParsingException("Error could not parse url :" + exception.getMessage(),
68+
throw new ParsingException("Error could not parse URL: " + exception.getMessage(),
6969
exception);
7070
}
7171
}
@@ -103,7 +103,7 @@ public ListLinkHandler fromUrl(final String url) throws ParsingException {
103103
getSortFilter(url));
104104
}
105105
} catch (MalformedURLException exception) {
106-
throw new ParsingException("Error could not parse url :" + exception.getMessage(),
106+
throw new ParsingException("Error could not parse URL: " + exception.getMessage(),
107107
exception);
108108
}
109109
return super.fromUrl(url);

0 commit comments

Comments
 (0)