mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-14 22:30:33 +05:30
Fix typos
Co-Authored-By: B0pol <bopol@e.email>
This commit is contained in:
parent
030465b5d4
commit
6822574588
@ -115,7 +115,7 @@ public enum MediaFormat {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the media format by it's id.
|
* Get the media format by its id.
|
||||||
*
|
*
|
||||||
* @param id the id
|
* @param id the id
|
||||||
* @return the id of the media format or null.
|
* @return the id of the media format or null.
|
||||||
|
@ -14,7 +14,6 @@ public class CommentsInfo extends ListInfo<CommentsInfoItem> {
|
|||||||
|
|
||||||
private CommentsInfo(int serviceId, ListLinkHandler listUrlIdHandler, String name) {
|
private CommentsInfo(int serviceId, ListLinkHandler listUrlIdHandler, String name) {
|
||||||
super(serviceId, listUrlIdHandler, name);
|
super(serviceId, listUrlIdHandler, name);
|
||||||
// TODO Auto-generated constructor stub
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static CommentsInfo getInfo(String url) throws IOException, ExtractionException {
|
public static CommentsInfo getInfo(String url) throws IOException, ExtractionException {
|
||||||
|
@ -69,7 +69,7 @@ public abstract class ListLinkHandlerFactory extends LinkHandlerFactory {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For makeing ListLinkHandlerFactory compatible with LinkHandlerFactory we need to override this,
|
* For making ListLinkHandlerFactory compatible with LinkHandlerFactory we need to override this,
|
||||||
* however it should not be overridden by the actual implementation.
|
* however it should not be overridden by the actual implementation.
|
||||||
*
|
*
|
||||||
* @param id
|
* @param id
|
||||||
|
@ -39,7 +39,7 @@ public abstract class SearchQueryHandlerFactory extends ListLinkHandlerFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* It's not mandatorry for NewPipe to handle the Url
|
* It's not mandatory for NewPipe to handle the Url
|
||||||
*
|
*
|
||||||
* @param url
|
* @param url
|
||||||
* @return
|
* @return
|
||||||
|
@ -124,7 +124,7 @@ public class PeertubeChannelExtractor extends ChannelExtractor {
|
|||||||
if (number != null) this.total = number.longValue();
|
if (number != null) this.total = number.longValue();
|
||||||
collectStreamsFrom(collector, json, pageUrl);
|
collectStreamsFrom(collector, json, pageUrl);
|
||||||
} else {
|
} else {
|
||||||
throw new ExtractionException("Unable to get peertube kiosk info");
|
throw new ExtractionException("Unable to get PeerTube kiosk info");
|
||||||
}
|
}
|
||||||
return new InfoItemsPage<>(collector, getNextPageUrl(pageUrl));
|
return new InfoItemsPage<>(collector, getNextPageUrl(pageUrl));
|
||||||
}
|
}
|
||||||
@ -158,7 +158,7 @@ public class PeertubeChannelExtractor extends ChannelExtractor {
|
|||||||
if (null != response && null != response.responseBody()) {
|
if (null != response && null != response.responseBody()) {
|
||||||
setInitialData(response.responseBody());
|
setInitialData(response.responseBody());
|
||||||
} else {
|
} else {
|
||||||
throw new ExtractionException("Unable to extract peertube channel data");
|
throw new ExtractionException("Unable to extract PeerTube channel data");
|
||||||
}
|
}
|
||||||
|
|
||||||
String pageUrl = getUrl() + "/videos?" + START_KEY + "=0&" + COUNT_KEY + "=" + ITEMS_PER_PAGE;
|
String pageUrl = getUrl() + "/videos?" + START_KEY + "=0&" + COUNT_KEY + "=" + ITEMS_PER_PAGE;
|
||||||
@ -171,7 +171,7 @@ public class PeertubeChannelExtractor extends ChannelExtractor {
|
|||||||
} catch (JsonParserException e) {
|
} catch (JsonParserException e) {
|
||||||
throw new ExtractionException("Unable to extract peertube channel data", e);
|
throw new ExtractionException("Unable to extract peertube channel data", e);
|
||||||
}
|
}
|
||||||
if (null == json) throw new ExtractionException("Unable to extract peertube channel data");
|
if (null == json) throw new ExtractionException("Unable to extract PeerTube channel data");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -73,7 +73,6 @@ public class PeertubePlaylistExtractor extends PlaylistExtractor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onFetchPage(Downloader downloader) throws IOException, ExtractionException {
|
public void onFetchPage(Downloader downloader) throws IOException, ExtractionException {
|
||||||
// TODO Auto-generated method stub
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ public class PeertubeTrendingExtractor extends KioskExtractor<StreamInfoItem> {
|
|||||||
try {
|
try {
|
||||||
contents = (JsonArray) JsonUtils.getValue(json, "data");
|
contents = (JsonArray) JsonUtils.getValue(json, "data");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new ParsingException("unable to extract kiosk info", e);
|
throw new ParsingException("Unable to extract kiosk info", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
String baseUrl = getBaseUrl();
|
String baseUrl = getBaseUrl();
|
||||||
|
@ -68,7 +68,7 @@ public class YoutubePlaylistExtractor extends PlaylistExtractor {
|
|||||||
@Override
|
@Override
|
||||||
public String getBannerUrl() {
|
public String getBannerUrl() {
|
||||||
return ""; // Banner can't be handled by frontend right now.
|
return ""; // Banner can't be handled by frontend right now.
|
||||||
// Whoever is willing to implement this should also implement this in the fornt end
|
// Whoever is willing to implement this should also implement this in the front end.
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -128,7 +128,7 @@ public abstract class StreamExtractor extends Extractor {
|
|||||||
public abstract long getViewCount() throws ParsingException;
|
public abstract long getViewCount() throws ParsingException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Amount of likes a video/audio stream got.
|
* The amount of likes a video/audio stream got.
|
||||||
* If the current stream has no likes or its not available simply return -1
|
* If the current stream has no likes or its not available simply return -1
|
||||||
*
|
*
|
||||||
* @return the amount of likes the stream got
|
* @return the amount of likes the stream got
|
||||||
@ -137,7 +137,7 @@ public abstract class StreamExtractor extends Extractor {
|
|||||||
public abstract long getLikeCount() throws ParsingException;
|
public abstract long getLikeCount() throws ParsingException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Amount of dislikes a video/audio stream got.
|
* The amount of dislikes a video/audio stream got.
|
||||||
* If the current stream has no dislikes or its not available simply return -1
|
* If the current stream has no dislikes or its not available simply return -1
|
||||||
*
|
*
|
||||||
* @return the amount of likes the stream got
|
* @return the amount of likes the stream got
|
||||||
@ -276,7 +276,7 @@ public abstract class StreamExtractor extends Extractor {
|
|||||||
public abstract StreamType getStreamType() throws ParsingException;
|
public abstract StreamType getStreamType() throws ParsingException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* should return the url of the next stream. NewPipe will automatically play
|
* Should return the url of the next stream. NewPipe will automatically play
|
||||||
* the next stream if the user wants that.
|
* the next stream if the user wants that.
|
||||||
* If the next stream is is not available simply return null
|
* If the next stream is is not available simply return null
|
||||||
*
|
*
|
||||||
@ -291,7 +291,7 @@ public abstract class StreamExtractor extends Extractor {
|
|||||||
* streams. If you don't like suggested streams you should implement them anyway since they can
|
* streams. If you don't like suggested streams you should implement them anyway since they can
|
||||||
* be disabled by the user later in the frontend.
|
* be disabled by the user later in the frontend.
|
||||||
* This list MUST NOT contain the next available video as this should be return through getNextStream()
|
* This list MUST NOT contain the next available video as this should be return through getNextStream()
|
||||||
* If is is not available simply return null
|
* If it is not available simply return null
|
||||||
*
|
*
|
||||||
* @return a list of InfoItems showing the related videos/streams
|
* @return a list of InfoItems showing the related videos/streams
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
@ -324,10 +324,10 @@ public abstract class StreamExtractor extends Extractor {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Override this function if the format of time stamp in the url is not the same format as that form youtube.
|
* Override this function if the format of time stamp in the url is not the same format as that form youtube.
|
||||||
* Honestly I don't even know the time stamp fromat of youtube.
|
* Honestly I don't even know the time stamp format of YouTube.
|
||||||
*
|
*
|
||||||
* @param regexPattern
|
* @param regexPattern
|
||||||
* @return the sime stamp/seek for the video in seconds
|
* @return the time stamp/seek for the video in seconds
|
||||||
* @throws ParsingException
|
* @throws ParsingException
|
||||||
*/
|
*/
|
||||||
protected long getTimestampSeconds(String regexPattern) throws ParsingException {
|
protected long getTimestampSeconds(String regexPattern) throws ParsingException {
|
||||||
|
Loading…
Reference in New Issue
Block a user