diff --git a/03_Implement_a_service/index.html b/03_Implement_a_service/index.html index f3200a9..4c46269 100644 --- a/03_Implement_a_service/index.html +++ b/03_Implement_a_service/index.html @@ -140,17 +140,17 @@

Implement a service

-

Services or better service connectors are the parts of NewPipe which communicative with an actual service like YouTube. +

Services or better service connectors are the parts of NewPipe which communicate with an actual service like YouTube. This Page will describe how you can implement and add your own to the extractor. Please make sure you read and understand the Concept of Extractors and the Concept of LinkHandler before doing this.

Required and optional parts

-

Please be aware that your extractor has to implement certain parts, but does not have to implement all. +

Your service does not have to implement everything. Some parts are optional. This is because not all services support every feature other services support. For example, it might be that a certain -service does not support channels. If so, you can leve out the implementation of channels, and make the corresponding -factory methode of the your StreamingService implementation return null. The forntend will then automatically -leave out these parts.

+service does not support channels. If so, you can leave out the implementation of channels, and make the corresponding +factory methode of the your StreamingService implementation return null. The forntend will handle the lack of +having channels then.

However if you start to implement one of the optional parts of the list below, you have to implement all parts/classes of it. NewPipe will crash if you only implement the extractor for the list item of a channel, but not the channel extractor itself.

The parts of a service:

@@ -177,7 +177,8 @@ ask us to introduce a new library than start using regex to often.

If you need to introduce new libraries please tell us before you do it.

Head of Service

First of all if you want to create a new service you should create a new package below org.schabi.newpipe.services -, with the name of your service as package name. Here you must put an implementation of these two classes:

+, with the name of your service as package name.

+

Parts required to be implemented: