Search in sources :

Example 1 with SearchEngine

use of org.schabi.newpipe.extractor.search.SearchEngine in project NewPipe by TeamNewPipe.

the class YoutubeSearchEngineChannelTest method setUp.

@Before
public void setUp() throws Exception {
    NewPipe.init(Downloader.getInstance());
    SearchEngine engine = NewPipe.getService("Youtube").getSearchEngineInstance();
    result = engine.search("gronkh", 0, "de", EnumSet.of(SearchEngine.Filter.CHANNEL)).getSearchResult();
}
Also used : SearchEngine(org.schabi.newpipe.extractor.search.SearchEngine) Before(org.junit.Before)

Example 2 with SearchEngine

use of org.schabi.newpipe.extractor.search.SearchEngine in project NewPipe by TeamNewPipe.

the class YoutubeSearchEngineAllTest method setUp.

@Before
public void setUp() throws Exception {
    NewPipe.init(Downloader.getInstance());
    SearchEngine engine = NewPipe.getService("Youtube").getSearchEngineInstance();
    result = engine.search("asdf", 0, "de", EnumSet.of(SearchEngine.Filter.CHANNEL, SearchEngine.Filter.STREAM)).getSearchResult();
}
Also used : SearchEngine(org.schabi.newpipe.extractor.search.SearchEngine) Before(org.junit.Before)

Example 3 with SearchEngine

use of org.schabi.newpipe.extractor.search.SearchEngine in project NewPipe by TeamNewPipe.

the class YoutubeSearchEngineStreamTest method setUp.

@Before
public void setUp() throws Exception {
    NewPipe.init(Downloader.getInstance());
    SearchEngine engine = NewPipe.getService("Youtube").getSearchEngineInstance();
    result = engine.search("this is something boring", 0, "de", EnumSet.of(SearchEngine.Filter.STREAM)).getSearchResult();
}
Also used : SearchEngine(org.schabi.newpipe.extractor.search.SearchEngine) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)3 SearchEngine (org.schabi.newpipe.extractor.search.SearchEngine)3