Skip to content

Commit 6822574

Browse files
TobiGrB0pol
andcommitted
Fix typos
Co-Authored-By: B0pol <bopol@e.email>
1 parent 030465b commit 6822574

9 files changed

Lines changed: 14 additions & 16 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/MediaFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public static MediaFormat getFromMimeType(String mimeType) {
115115
}
116116

117117
/**
118-
* Get the media format by it's id.
118+
* Get the media format by its id.
119119
*
120120
* @param id the id
121121
* @return the id of the media format or null.

extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfo.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ public class CommentsInfo extends ListInfo<CommentsInfoItem> {
1414

1515
private CommentsInfo(int serviceId, ListLinkHandler listUrlIdHandler, String name) {
1616
super(serviceId, listUrlIdHandler, name);
17-
// TODO Auto-generated constructor stub
1817
}
1918

2019
public static CommentsInfo getInfo(String url) throws IOException, ExtractionException {

extractor/src/main/java/org/schabi/newpipe/extractor/linkhandler/ListLinkHandlerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public ListLinkHandler fromQuery(String id,
6969

7070

7171
/**
72-
* For makeing ListLinkHandlerFactory compatible with LinkHandlerFactory we need to override this,
72+
* For making ListLinkHandlerFactory compatible with LinkHandlerFactory we need to override this,
7373
* however it should not be overridden by the actual implementation.
7474
*
7575
* @param id

extractor/src/main/java/org/schabi/newpipe/extractor/linkhandler/SearchQueryHandlerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public SearchQueryHandler fromQuery(String querry) throws ParsingException {
3939
}
4040

4141
/**
42-
* It's not mandatorry for NewPipe to handle the Url
42+
* It's not mandatory for NewPipe to handle the Url
4343
*
4444
* @param url
4545
* @return

extractor/src/main/java/org/schabi/newpipe/extractor/services/peertube/extractors/PeertubeChannelExtractor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public InfoItemsPage<StreamInfoItem> getPage(String pageUrl) throws IOException,
124124
if (number != null) this.total = number.longValue();
125125
collectStreamsFrom(collector, json, pageUrl);
126126
} else {
127-
throw new ExtractionException("Unable to get peertube kiosk info");
127+
throw new ExtractionException("Unable to get PeerTube kiosk info");
128128
}
129129
return new InfoItemsPage<>(collector, getNextPageUrl(pageUrl));
130130
}
@@ -158,7 +158,7 @@ public void onFetchPage(Downloader downloader) throws IOException, ExtractionExc
158158
if (null != response && null != response.responseBody()) {
159159
setInitialData(response.responseBody());
160160
} else {
161-
throw new ExtractionException("Unable to extract peertube channel data");
161+
throw new ExtractionException("Unable to extract PeerTube channel data");
162162
}
163163

164164
String pageUrl = getUrl() + "/videos?" + START_KEY + "=0&" + COUNT_KEY + "=" + ITEMS_PER_PAGE;
@@ -171,7 +171,7 @@ private void setInitialData(String responseBody) throws ExtractionException {
171171
} catch (JsonParserException e) {
172172
throw new ExtractionException("Unable to extract peertube channel data", e);
173173
}
174-
if (null == json) throw new ExtractionException("Unable to extract peertube channel data");
174+
if (null == json) throw new ExtractionException("Unable to extract PeerTube channel data");
175175
}
176176

177177
@Override

extractor/src/main/java/org/schabi/newpipe/extractor/services/peertube/extractors/PeertubePlaylistExtractor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ public InfoItemsPage<StreamInfoItem> getPage(String pageUrl) throws IOException,
7373

7474
@Override
7575
public void onFetchPage(Downloader downloader) throws IOException, ExtractionException {
76-
// TODO Auto-generated method stub
7776

7877
}
7978

extractor/src/main/java/org/schabi/newpipe/extractor/services/peertube/extractors/PeertubeTrendingExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private void collectStreamsFrom(StreamInfoItemsCollector collector, JsonObject j
4949
try {
5050
contents = (JsonArray) JsonUtils.getValue(json, "data");
5151
} catch (Exception e) {
52-
throw new ParsingException("unable to extract kiosk info", e);
52+
throw new ParsingException("Unable to extract kiosk info", e);
5353
}
5454

5555
String baseUrl = getBaseUrl();

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubePlaylistExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public String getThumbnailUrl() throws ParsingException {
6868
@Override
6969
public String getBannerUrl() {
7070
return ""; // Banner can't be handled by frontend right now.
71-
// Whoever is willing to implement this should also implement this in the fornt end
71+
// Whoever is willing to implement this should also implement this in the front end.
7272
}
7373

7474
@Override

extractor/src/main/java/org/schabi/newpipe/extractor/stream/StreamExtractor.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public StreamExtractor(StreamingService service, LinkHandler linkHandler) {
128128
public abstract long getViewCount() throws ParsingException;
129129

130130
/**
131-
* The Amount of likes a video/audio stream got.
131+
* The amount of likes a video/audio stream got.
132132
* If the current stream has no likes or its not available simply return -1
133133
*
134134
* @return the amount of likes the stream got
@@ -137,7 +137,7 @@ public StreamExtractor(StreamingService service, LinkHandler linkHandler) {
137137
public abstract long getLikeCount() throws ParsingException;
138138

139139
/**
140-
* The Amount of dislikes a video/audio stream got.
140+
* The amount of dislikes a video/audio stream got.
141141
* If the current stream has no dislikes or its not available simply return -1
142142
*
143143
* @return the amount of likes the stream got
@@ -276,7 +276,7 @@ public StreamExtractor(StreamingService service, LinkHandler linkHandler) {
276276
public abstract StreamType getStreamType() throws ParsingException;
277277

278278
/**
279-
* should return the url of the next stream. NewPipe will automatically play
279+
* Should return the url of the next stream. NewPipe will automatically play
280280
* the next stream if the user wants that.
281281
* If the next stream is is not available simply return null
282282
*
@@ -291,7 +291,7 @@ public StreamExtractor(StreamingService service, LinkHandler linkHandler) {
291291
* streams. If you don't like suggested streams you should implement them anyway since they can
292292
* be disabled by the user later in the frontend.
293293
* This list MUST NOT contain the next available video as this should be return through getNextStream()
294-
* If is is not available simply return null
294+
* If it is not available simply return null
295295
*
296296
* @return a list of InfoItems showing the related videos/streams
297297
* @throws IOException
@@ -324,10 +324,10 @@ public List<Frameset> getFrames() throws IOException, ExtractionException {
324324

325325
/**
326326
* Override this function if the format of time stamp in the url is not the same format as that form youtube.
327-
* Honestly I don't even know the time stamp fromat of youtube.
327+
* Honestly I don't even know the time stamp format of YouTube.
328328
*
329329
* @param regexPattern
330-
* @return the sime stamp/seek for the video in seconds
330+
* @return the time stamp/seek for the video in seconds
331331
* @throws ParsingException
332332
*/
333333
protected long getTimestampSeconds(String regexPattern) throws ParsingException {

0 commit comments

Comments
 (0)