|
1 | 1 | package org.schabi.newpipe.extractor.stream; |
2 | 2 |
|
3 | 3 | /* |
4 | | - * Created by Christian Schabesberger on 10.08.15. |
| 4 | + * Created by Christian Schabesberger on 10.08.18. |
5 | 5 | * |
6 | 6 | * Copyright (C) Christian Schabesberger 2016 <chris.schabesberger@mailbox.org> |
7 | 7 | * StreamExtractor.java is part of NewPipe. |
@@ -211,19 +211,20 @@ public StreamExtractor(StreamingService service, LinkHandler linkHandler, Locali |
211 | 211 | * @throws ExtractionException |
212 | 212 | */ |
213 | 213 | @Nonnull |
214 | | - public abstract List<Subtitles> getSubtitlesDefault() throws IOException, ExtractionException; |
| 214 | + public abstract List<SubtitlesStream> getSubtitlesDefault() throws IOException, ExtractionException; |
215 | 215 |
|
216 | 216 | /** |
217 | 217 | * This will return a list of available |
218 | 218 | * <a href="https://teamnewpipe.github.io/NewPipeExtractor/javadoc/org/schabi/newpipe/extractor/stream/Subtitles.html">Subtitles</a>s. |
219 | 219 | * given by a specific type. |
220 | 220 | * If no subtitles in that specific format are available an empty list can returned. |
| 221 | + * @param format the media format by which the subtitles should be filtered |
221 | 222 | * @return a list of available subtitles or an empty list |
222 | 223 | * @throws IOException |
223 | 224 | * @throws ExtractionException |
224 | 225 | */ |
225 | 226 | @Nonnull |
226 | | - public abstract List<Subtitles> getSubtitles(SubtitlesFormat format) throws IOException, ExtractionException; |
| 227 | + public abstract List<SubtitlesStream> getSubtitles(MediaFormat format) throws IOException, ExtractionException; |
227 | 228 |
|
228 | 229 | /** |
229 | 230 | * Get the <a href="https://teamnewpipe.github.io/NewPipeExtractor/javadoc/">StreamType</a>. |
@@ -317,42 +318,4 @@ protected long getTimestampSeconds(String regexPattern) throws ParsingException |
317 | 318 | return 0; |
318 | 319 | } |
319 | 320 | } |
320 | | - |
321 | | - public abstract long getViewCount() throws ParsingException; |
322 | | - public abstract long getLikeCount() throws ParsingException; |
323 | | - public abstract long getDislikeCount() throws ParsingException; |
324 | | - |
325 | | - @Nonnull |
326 | | - public abstract String getUploaderUrl() throws ParsingException; |
327 | | - @Nonnull |
328 | | - public abstract String getUploaderName() throws ParsingException; |
329 | | - @Nonnull |
330 | | - public abstract String getUploaderAvatarUrl() throws ParsingException; |
331 | | - |
332 | | - /** |
333 | | - * Get the dash mpd url |
334 | | - * @return the url as a string or an empty string |
335 | | - * @throws ParsingException if an error occurs while reading |
336 | | - */ |
337 | | - @Nonnull public abstract String getDashMpdUrl() throws ParsingException; |
338 | | - @Nonnull public abstract String getHlsUrl() throws ParsingException; |
339 | | - public abstract List<AudioStream> getAudioStreams() throws IOException, ExtractionException; |
340 | | - public abstract List<VideoStream> getVideoStreams() throws IOException, ExtractionException; |
341 | | - public abstract List<VideoStream> getVideoOnlyStreams() throws IOException, ExtractionException; |
342 | | - |
343 | | - @Nonnull |
344 | | - public abstract List<SubtitlesStream> getSubtitlesDefault() throws IOException, ExtractionException; |
345 | | - @Nonnull |
346 | | - public abstract List<SubtitlesStream> getSubtitles(MediaFormat format) throws IOException, ExtractionException; |
347 | | - |
348 | | - public abstract StreamType getStreamType() throws ParsingException; |
349 | | - public abstract StreamInfoItem getNextVideo() throws IOException, ExtractionException; |
350 | | - public abstract StreamInfoItemsCollector getRelatedVideos() throws IOException, ExtractionException; |
351 | | - |
352 | | - /** |
353 | | - * Analyses the webpage's document and extracts any error message there might be. |
354 | | - * |
355 | | - * @return Error message; null if there is no error message. |
356 | | - */ |
357 | | - public abstract String getErrorMessage(); |
358 | 321 | } |
0 commit comments