30
30
31
31
import org .schabi .newpipe .MainActivity ;
32
32
import org .schabi .newpipe .R ;
33
+ import org .schabi .newpipe .extractor .comments .CommentsInfoItem ;
33
34
import org .schabi .newpipe .util .external_communication .TextLinkifier ;
34
35
import org .schabi .newpipe .extractor .Info ;
35
36
import org .schabi .newpipe .extractor .InfoItem ;
@@ -84,7 +85,7 @@ public static Single<SearchInfo> searchFor(final int serviceId, final String sea
84
85
.fromQuery (searchString , contentFilter , sortFilter )));
85
86
}
86
87
87
- public static Single <InfoItemsPage > getMoreSearchItems (final int serviceId ,
88
+ public static Single <InfoItemsPage <?> > getMoreSearchItems (final int serviceId ,
88
89
final String searchString ,
89
90
final List <String > contentFilter ,
90
91
final String sortFilter ,
@@ -124,8 +125,9 @@ public static Single<ChannelInfo> getChannelInfo(final int serviceId, final Stri
124
125
ChannelInfo .getInfo (NewPipe .getService (serviceId ), url )));
125
126
}
126
127
127
- public static Single <InfoItemsPage > getMoreChannelItems (final int serviceId , final String url ,
128
- final Page nextPage ) {
128
+ public static Single <InfoItemsPage <StreamInfoItem >> getMoreChannelItems (final int serviceId ,
129
+ final String url ,
130
+ final Page nextPage ) {
129
131
checkServiceId (serviceId );
130
132
return Single .fromCallable (() ->
131
133
ChannelInfo .getMoreItems (NewPipe .getService (serviceId ), url , nextPage ));
@@ -155,24 +157,27 @@ public static Single<CommentsInfo> getCommentsInfo(final int serviceId, final St
155
157
CommentsInfo .getInfo (NewPipe .getService (serviceId ), url )));
156
158
}
157
159
158
- public static Single <InfoItemsPage > getMoreCommentItems (final int serviceId ,
159
- final CommentsInfo info ,
160
- final Page nextPage ) {
160
+ public static Single <InfoItemsPage <CommentsInfoItem >> getMoreCommentItems (
161
+ final int serviceId ,
162
+ final CommentsInfo info ,
163
+ final Page nextPage ) {
161
164
checkServiceId (serviceId );
162
165
return Single .fromCallable (() ->
163
166
CommentsInfo .getMoreItems (NewPipe .getService (serviceId ), info , nextPage ));
164
167
}
165
168
166
- public static Single <PlaylistInfo > getPlaylistInfo (final int serviceId , final String url ,
169
+ public static Single <PlaylistInfo > getPlaylistInfo (final int serviceId ,
170
+ final String url ,
167
171
final boolean forceLoad ) {
168
172
checkServiceId (serviceId );
169
173
return checkCache (forceLoad , serviceId , url , InfoItem .InfoType .PLAYLIST ,
170
174
Single .fromCallable (() ->
171
175
PlaylistInfo .getInfo (NewPipe .getService (serviceId ), url )));
172
176
}
173
177
174
- public static Single <InfoItemsPage > getMorePlaylistItems (final int serviceId , final String url ,
175
- final Page nextPage ) {
178
+ public static Single <InfoItemsPage <StreamInfoItem >> getMorePlaylistItems (final int serviceId ,
179
+ final String url ,
180
+ final Page nextPage ) {
176
181
checkServiceId (serviceId );
177
182
return Single .fromCallable (() ->
178
183
PlaylistInfo .getMoreItems (NewPipe .getService (serviceId ), url , nextPage ));
@@ -184,8 +189,9 @@ public static Single<KioskInfo> getKioskInfo(final int serviceId, final String u
184
189
Single .fromCallable (() -> KioskInfo .getInfo (NewPipe .getService (serviceId ), url )));
185
190
}
186
191
187
- public static Single <InfoItemsPage > getMoreKioskItems (final int serviceId , final String url ,
188
- final Page nextPage ) {
192
+ public static Single <InfoItemsPage <StreamInfoItem >> getMoreKioskItems (final int serviceId ,
193
+ final String url ,
194
+ final Page nextPage ) {
189
195
return Single .fromCallable (() ->
190
196
KioskInfo .getMoreItems (NewPipe .getService (serviceId ), url , nextPage ));
191
197
}
0 commit comments