Skip to content

Commit 03893ab

Browse files
committed
(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).
1 parent d22786b commit 03893ab

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeSubscriptionExtractor.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ private List<SubscriptionItem> getItemsFromOPML(InputStream contentInputStream)
6363
String title = outline.attr("title");
6464
String xmlUrl = outline.attr("abs:xmlUrl");
6565

66-
if (title.isEmpty() || xmlUrl.isEmpty()) {
66+
if (title.isEmpty()) {
67+
continue;
68+
}
69+
70+
if (xmlUrl.isEmpty()) {
6771
throw new InvalidSourceException("document has invalid entries");
6872
}
6973

0 commit comments

Comments
 (0)