mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-13 13:50:33 +05:30
Fixed TeamNewPipe/NewPipe#2226.
(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:
parent
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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user