public static InfoItemsPage<StreamInfoItem> getMoreItems(StreamingService service, String url, String pageUrl) throws IOException, ExtractionException { return service.getChannelExtractor(url).getPage(pageUrl); }
public static ChannelInfo getInfo(ChannelExtractor extractor) throws IOException, ExtractionException { ChannelInfo info = new ChannelInfo(extractor.getServiceId(), extractor.getLinkHandler(), extractor.getName()); info.setAvatarUrl(extractor.getAvatarUrl()); } catch (Exception e) { info.addError(e); info.setBannerUrl(extractor.getBannerUrl()); } catch (Exception e) { info.addError(e); info.setFeedUrl(extractor.getFeedUrl()); } catch (Exception e) { info.addError(e); info.setSubscriberCount(extractor.getSubscriberCount()); } catch (Exception e) { info.addError(e); info.setDescription(extractor.getDescription()); } catch (Exception e) { info.addError(e); info.setDonationLinks(extractor.getDonationLinks()); } catch (Exception e) { info.addError(e);
public static ChannelInfo getInfo(StreamingService service, String url) throws IOException, ExtractionException { ChannelExtractor extractor = service.getChannelExtractor(url); extractor.fetchPage(); return getInfo(extractor); }