Update ChannelInfo.java

This commit is contained in:
Robin 2020-01-08 15:12:12 +01:00 committed by GitHub
parent 244cf52fe6
commit 1351820ef9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -63,13 +63,13 @@ public class ChannelInfo extends ListInfo<StreamInfoItem> {
extractor.getLinkHandler(),
extractor.getName());
} catch (ParsingException e) {
info = new ChannelInfo(extractor.getServiceId(),
extractor.getLinkHandler(),
"");
String errorMessage = extractor.obtainErrorMessage();
if (errorMessage != null) {
throw new ContentNotAvailableException(errorMessage);
}
info = new ChannelInfo(extractor.getServiceId(),
extractor.getLinkHandler(),
"");
info.addError(e);
}