Bypass duration = -1 video for yt

pull/590/head
jhengazuki 9 months ago
parent 86b1e50c54
commit bc7c8b0a5f
  1. 1
      app/src/main/java/com/fongmi/android/tv/player/extractor/Youtube.java

@ -144,6 +144,7 @@ public class Youtube implements Source.Extractor {
private void add(List<Episode> episodes, ListExtractor.InfoItemsPage<StreamInfoItem> page) {
for (StreamInfoItem item : page.getItems()) {
if (item.getDuration() == -1) continue;
episodes.add(Episode.create(item.getName(), item.getUrl()));
}
if (page.hasNextPage()) {

Loading…
Cancel
Save