Deployed 3f64b99 with MkDocs version: 1.0.3

This commit is contained in:
Christian Schabesberger 2018-09-08 20:54:53 +01:00
parent eacd547843
commit 090c6b8520
4 changed files with 22 additions and 7 deletions

View File

@ -81,7 +81,7 @@
<li><a class="toctree-l3" href="#implementation">Implementation</a></li> <li><a class="toctree-l3" href="#implementation">Implementation</a></li>
<li><a class="toctree-l3" href="#listlinkhandler-and-querylinkhandler">ListLinkHandler and QueryLinkHandler</a></li> <li><a class="toctree-l3" href="#listlinkhandler-and-searchqueryhandler">ListLinkHandler and SearchQueryHandler</a></li>
</ul> </ul>
@ -168,10 +168,25 @@ LinkHandler myVideo = myLinkHandlerFactory.fromUrl(&quot;https://my.service.com/
} }
</code></pre> </code></pre>
<h3 id="listlinkhandler-and-querylinkhandler">ListLinkHandler and QueryLinkHandler</h3> <h3 id="listlinkhandler-and-searchqueryhandler">ListLinkHandler and SearchQueryHandler</h3>
<p>List based resources like channels and playlists can be sorted, for example by date, name, or by a certain name. <p>List based resources like channels and playlists can be sorted, and filtered.
Therefore these type of resources don't just use a LinkHandler, but an extention called Therefore these type of resources don't just use a LinkHandler, but a class called
<a href="https://teamnewpipe.github.io/NewPipeExtractor/javadoc/org/schabi/newpipe/extractor/linkhandler/ListLinkHandler.html">ListLinkHandler</a></p> <a href="https://teamnewpipe.github.io/NewPipeExtractor/javadoc/org/schabi/newpipe/extractor/linkhandler/ListLinkHandler.html">ListLinkHandler</a>
which inherits from LinkHandler and adds the fields <a href="https://teamnewpipe.github.io/NewPipeExtractor/javadoc/org/schabi/newpipe/extractor/linkhandler/ListLinkHandler.html#contentFilters">ContentFilter</a>
which is used to filter by resource type like stream or playlist, and
<a href="https://teamnewpipe.github.io/NewPipeExtractor/javadoc/org/schabi/newpipe/extractor/linkhandler/ListLinkHandler.html#sortFilter">SortFilter</a>
which is used to sort by name, date or view count.</p>
<p>ListLinkHandler are also created by overriding the <a href="https://teamnewpipe.github.io/NewPipeExtractor/javadoc/org/schabi/newpipe/extractor/linkhandler/ListLinkHandlerFactory.html">ListLinkHandlerFactory</a>
additionally to the abstract methods this factory inherits from the LinkHandlerFactory you can override
<a href="https://teamnewpipe.github.io/NewPipeExtractor/javadoc/org/schabi/newpipe/extractor/linkhandler/ListLinkHandlerFactory.html#getAvailableContentFilter--">getAvailableContentFilter()</a>
and <a href="https://teamnewpipe.github.io/NewPipeExtractor/javadoc/org/schabi/newpipe/extractor/linkhandler/ListLinkHandlerFactory.html#getAvailableSortFilter--">getAvailableSortFilter()</a>.
Through these you can tell the front end which kind of filter your service support.</p>
<h4 id="searchqueryhandler">SearchQueryHandler</h4>
<p>You can not point to a search request with an ID like you point to a playlist or a channel, simply because one and the
same search request might have a changing outcome deepening on the country or the time you send the request. This is
why the idea of an "ID" is replaced by a "SearchString" in the <a href="https://teamnewpipe.github.io/NewPipeExtractor/javadoc/org/schabi/newpipe/extractor/linkhandler/SearchQueryHandler.html">SearchQueryHandler</a>
These work like regular ListLinkHandler, accept that you don't have to implement the methodes <code>onAcceptUrl()</code>
and <code>getId()</code> when overriding <a href="https://teamnewpipe.github.io/NewPipeExtractor/javadoc/org/schabi/newpipe/extractor/linkhandler/SearchQueryHandlerFactory.html">SearchQueryHandlerFactory</a>.</p>
</div> </div>
</div> </div>

View File

@ -171,5 +171,5 @@ It focuses on making it possible for the creator of a scraper for a streaming se
<!-- <!--
MkDocs version : 1.0.3 MkDocs version : 1.0.3
Build Date UTC : 2018-09-08 17:06:35 Build Date UTC : 2018-09-08 19:54:53
--> -->

File diff suppressed because one or more lines are too long

Binary file not shown.