66import com .grack .nanojson .JsonParserException ;
77import org .schabi .newpipe .extractor .Downloader ;
88import org .schabi .newpipe .extractor .InfoItem ;
9- import org .schabi .newpipe .extractor .InfoItemsCollector ;
109import org .schabi .newpipe .extractor .StreamingService ;
1110import org .schabi .newpipe .extractor .channel .ChannelInfoItem ;
1211import org .schabi .newpipe .extractor .channel .ChannelInfoItemExtractor ;
1615import org .schabi .newpipe .extractor .search .InfoItemsSearchCollector ;
1716import org .schabi .newpipe .extractor .search .SearchExtractor ;
1817import org .schabi .newpipe .extractor .services .media_ccc .extractors .infoItems .MediaCCCStreamInfoItemExtractor ;
19- import org .schabi .newpipe .extractor .services .media_ccc .linkHandler .MediaCCCConferenceLinkHandlerFactory ;
2018import org .schabi .newpipe .extractor .services .media_ccc .linkHandler .MediaCCCConferencesListLinkHandlerFactory ;
2119import org .schabi .newpipe .extractor .utils .Localization ;
2220import static org .schabi .newpipe .extractor .services .media_ccc .linkHandler .MediaCCCSearchQueryHandlerFactory .CONFERENCES ;
@@ -54,14 +52,16 @@ public InfoItemsPage<InfoItem> getInitialPage() throws IOException, ExtractionEx
5452 InfoItemsSearchCollector searchItems = getInfoItemSearchCollector ();
5553
5654 if (getLinkHandler ().getContentFilters ().contains (CONFERENCES )
57- || getLinkHandler ().getContentFilters ().contains (ALL )) {
55+ || getLinkHandler ().getContentFilters ().contains (ALL )
56+ || getLinkHandler ().getContentFilters ().isEmpty ()) {
5857 searchConferences (getSearchString (),
5958 conferenceKiosk .getInitialPage ().getItems (),
6059 searchItems );
6160 }
6261
6362 if (getLinkHandler ().getContentFilters ().contains (EVENTS )
64- || getLinkHandler ().getContentFilters ().contains (ALL )) {
63+ || getLinkHandler ().getContentFilters ().contains (ALL )
64+ || getLinkHandler ().getContentFilters ().isEmpty ()) {
6565 JsonArray events = doc .getArray ("events" );
6666 for (int i = 0 ; i < events .size (); i ++) {
6767 searchItems .commit (new MediaCCCStreamInfoItemExtractor (
@@ -84,7 +84,8 @@ public InfoItemsPage<InfoItem> getPage(String pageUrl) throws IOException, Extra
8484 @ Override
8585 public void onFetchPage (@ Nonnull Downloader downloader ) throws IOException , ExtractionException {
8686 if (getLinkHandler ().getContentFilters ().contains (EVENTS )
87- || getLinkHandler ().getContentFilters ().contains (ALL )) {
87+ || getLinkHandler ().getContentFilters ().contains (ALL )
88+ || getLinkHandler ().getContentFilters ().isEmpty ()) {
8889 final String site ;
8990 final String url = getUrl ();
9091 site = downloader .download (url , getLocalization ());
@@ -95,7 +96,8 @@ public void onFetchPage(@Nonnull Downloader downloader) throws IOException, Extr
9596 }
9697 }
9798 if (getLinkHandler ().getContentFilters ().contains (CONFERENCES )
98- || getLinkHandler ().getContentFilters ().contains (ALL ))
99+ || getLinkHandler ().getContentFilters ().contains (ALL )
100+ || getLinkHandler ().getContentFilters ().isEmpty ())
99101 conferenceKiosk .fetchPage ();
100102 }
101103
0 commit comments