(in the youtube subscription extractor)
Ignore subscriptions that have an empty title instead of throwing an error: the youtube subscription_manager XML file can sometimes contain those (i.e. deleted channels).
This commit is contained in:
Stypox 2019-04-26 18:54:30 +02:00
parent d22786b817
commit 03893abd91
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
1 changed files with 5 additions and 1 deletions

View File

@ -63,7 +63,11 @@ public class YoutubeSubscriptionExtractor extends SubscriptionExtractor {
String title = outline.attr("title");
String xmlUrl = outline.attr("abs:xmlUrl");
if (title.isEmpty() || xmlUrl.isEmpty()) {
if (title.isEmpty()) {
continue;
}
if (xmlUrl.isEmpty()) {
throw new InvalidSourceException("document has invalid entries");
}