parent
cdf41b868c
commit
e98112ea21
|
@ -47,7 +47,7 @@ public class PlaylistInfo extends ListInfo<StreamInfoItem> {
|
||||||
extractor.getName());
|
extractor.getName());
|
||||||
// collect uploader extraction failures until we are sure this is not
|
// collect uploader extraction failures until we are sure this is not
|
||||||
// just a playlist without an uploader
|
// just a playlist without an uploader
|
||||||
List<Throwable> uploaderParsingErros = new ArrayList<Throwable>(3);
|
List<Throwable> uploaderParsingErrors = new ArrayList<Throwable>(3);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
info.setOriginalUrl(extractor.getOriginalUrl());
|
info.setOriginalUrl(extractor.getOriginalUrl());
|
||||||
|
@ -68,19 +68,19 @@ public class PlaylistInfo extends ListInfo<StreamInfoItem> {
|
||||||
info.setUploaderUrl(extractor.getUploaderUrl());
|
info.setUploaderUrl(extractor.getUploaderUrl());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
info.setUploaderUrl("");
|
info.setUploaderUrl("");
|
||||||
uploaderParsingErros.add(e);
|
uploaderParsingErrors.add(e);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
info.setUploaderName(extractor.getUploaderName());
|
info.setUploaderName(extractor.getUploaderName());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
info.setUploaderName("");
|
info.setUploaderName("");
|
||||||
uploaderParsingErros.add(e);
|
uploaderParsingErrors.add(e);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
info.setUploaderAvatarUrl(extractor.getUploaderAvatarUrl());
|
info.setUploaderAvatarUrl(extractor.getUploaderAvatarUrl());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
info.setUploaderAvatarUrl("");
|
info.setUploaderAvatarUrl("");
|
||||||
uploaderParsingErros.add(e);
|
uploaderParsingErrors.add(e);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
info.setBannerUrl(extractor.getBannerUrl());
|
info.setBannerUrl(extractor.getBannerUrl());
|
||||||
|
@ -88,9 +88,9 @@ public class PlaylistInfo extends ListInfo<StreamInfoItem> {
|
||||||
info.addError(e);
|
info.addError(e);
|
||||||
}
|
}
|
||||||
// do not fail if everything but the uploader infos could be collected
|
// do not fail if everything but the uploader infos could be collected
|
||||||
if (uploaderParsingErros.size() > 0 &&
|
if (uploaderParsingErrors.size() > 0 &&
|
||||||
(!info.getErrors().isEmpty() || uploaderParsingErros.size() < 3)) {
|
(!info.getErrors().isEmpty() || uploaderParsingErrors.size() < 3)) {
|
||||||
info.addAllErrors(uploaderParsingErros);
|
info.addAllErrors(uploaderParsingErrors);
|
||||||
}
|
}
|
||||||
|
|
||||||
final InfoItemsPage<StreamInfoItem> itemsPage = ExtractorHelper.getItemsPageOrLogError(info, extractor);
|
final InfoItemsPage<StreamInfoItem> itemsPage = ExtractorHelper.getItemsPageOrLogError(info, extractor);
|
||||||
|
|
Loading…
Reference in New Issue