Typos corrected in StreamInfo

This commit is contained in:
Coffeemakr 2016-12-27 13:26:48 +01:00
parent 14623456ff
commit 05cbc7891d
1 changed files with 7 additions and 7 deletions

View File

@ -86,8 +86,8 @@ public class StreamInfo extends AbstractStreamInfo {
private static StreamInfo extractImportantData( private static StreamInfo extractImportantData(
StreamInfo streamInfo, StreamExtractor extractor) StreamInfo streamInfo, StreamExtractor extractor)
throws ExtractionException, IOException { throws ExtractionException, IOException {
/* ---- importand data, withoug the video can't be displayed goes here: ---- */ /* ---- important data, withoug the video can't be displayed goes here: ---- */
// if one of these is not available an exception is ment to be thrown directly into the frontend. // if one of these is not available an exception is meant to be thrown directly into the frontend.
UrlIdHandler uiconv = extractor.getUrlIdHandler(); UrlIdHandler uiconv = extractor.getUrlIdHandler();
@ -134,7 +134,7 @@ public class StreamInfo extends AbstractStreamInfo {
streamInfo.audio_streams = new Vector<>(); streamInfo.audio_streams = new Vector<>();
} }
//todo: make this quick and dirty solution a real fallback //todo: make this quick and dirty solution a real fallback
// same as the quick and dirty aboth // same as the quick and dirty above
try { try {
streamInfo.audio_streams.addAll( streamInfo.audio_streams.addAll(
DashMpdParser.getAudioStreams(streamInfo.dashMpdUrl)); DashMpdParser.getAudioStreams(streamInfo.dashMpdUrl));
@ -173,9 +173,9 @@ public class StreamInfo extends AbstractStreamInfo {
private static StreamInfo extractOptionalData( private static StreamInfo extractOptionalData(
StreamInfo streamInfo, StreamExtractor extractor) { StreamInfo streamInfo, StreamExtractor extractor) {
/* ---- optional data goes here: ---- */ /* ---- optional data goes here: ---- */
// If one of these failes, the frontend neets to handle that they are not available. // If one of these fails, the frontend needs to handle that they are not available.
// Exceptions are therfore not thrown into the frontend, but stored into the error List, // Exceptions are therefore not thrown into the frontend, but stored into the error List,
// so the frontend can afterwads check where errors happend. // so the frontend can afterwards check where errors happened.
try { try {
streamInfo.thumbnail_url = extractor.getThumbnailUrl(); streamInfo.thumbnail_url = extractor.getThumbnailUrl();