kopia lustrzana https://github.com/TeamNewPipe/NewPipeExtractor
(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).pull/160/head
rodzic
d22786b817
commit
03893abd91
|
@ -63,7 +63,11 @@ public class YoutubeSubscriptionExtractor extends SubscriptionExtractor {
|
||||||
String title = outline.attr("title");
|
String title = outline.attr("title");
|
||||||
String xmlUrl = outline.attr("abs:xmlUrl");
|
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");
|
throw new InvalidSourceException("document has invalid entries");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue