[media.ccc.de] Fix wrong ListLinkHandlerFactories for kiosks
Regression introduced in #1082
This commit is contained in:
parent
1f08d28ae5
commit
55a2af20ad
|
@ -29,6 +29,8 @@ import org.schabi.newpipe.extractor.services.media_ccc.extractors.MediaCCCSearch
|
||||||
import org.schabi.newpipe.extractor.services.media_ccc.extractors.MediaCCCStreamExtractor;
|
import org.schabi.newpipe.extractor.services.media_ccc.extractors.MediaCCCStreamExtractor;
|
||||||
import org.schabi.newpipe.extractor.services.media_ccc.linkHandler.MediaCCCConferenceLinkHandlerFactory;
|
import org.schabi.newpipe.extractor.services.media_ccc.linkHandler.MediaCCCConferenceLinkHandlerFactory;
|
||||||
import org.schabi.newpipe.extractor.services.media_ccc.linkHandler.MediaCCCConferencesListLinkHandlerFactory;
|
import org.schabi.newpipe.extractor.services.media_ccc.linkHandler.MediaCCCConferencesListLinkHandlerFactory;
|
||||||
|
import org.schabi.newpipe.extractor.services.media_ccc.linkHandler.MediaCCCLiveListLinkHandlerFactory;
|
||||||
|
import org.schabi.newpipe.extractor.services.media_ccc.linkHandler.MediaCCCRecentListLinkHandlerFactory;
|
||||||
import org.schabi.newpipe.extractor.services.media_ccc.linkHandler.MediaCCCSearchQueryHandlerFactory;
|
import org.schabi.newpipe.extractor.services.media_ccc.linkHandler.MediaCCCSearchQueryHandlerFactory;
|
||||||
import org.schabi.newpipe.extractor.services.media_ccc.linkHandler.MediaCCCStreamLinkHandlerFactory;
|
import org.schabi.newpipe.extractor.services.media_ccc.linkHandler.MediaCCCStreamLinkHandlerFactory;
|
||||||
import org.schabi.newpipe.extractor.stream.StreamExtractor;
|
import org.schabi.newpipe.extractor.stream.StreamExtractor;
|
||||||
|
@ -112,37 +114,41 @@ public class MediaCCCService extends StreamingService {
|
||||||
@Override
|
@Override
|
||||||
public KioskList getKioskList() throws ExtractionException {
|
public KioskList getKioskList() throws ExtractionException {
|
||||||
final KioskList list = new KioskList(this);
|
final KioskList list = new KioskList(this);
|
||||||
final ListLinkHandlerFactory h = MediaCCCConferencesListLinkHandlerFactory.getInstance();
|
final ListLinkHandlerFactory conferenceLLHF = MediaCCCConferencesListLinkHandlerFactory
|
||||||
|
.getInstance();
|
||||||
|
final ListLinkHandlerFactory recentLLHF = MediaCCCRecentListLinkHandlerFactory
|
||||||
|
.getInstance();
|
||||||
|
final ListLinkHandlerFactory liveLLHF = MediaCCCLiveListLinkHandlerFactory.getInstance();
|
||||||
|
|
||||||
// add kiosks here e.g.:
|
// add kiosks here e.g.:
|
||||||
try {
|
try {
|
||||||
list.addKioskEntry(
|
list.addKioskEntry(
|
||||||
(streamingService, url, kioskId) -> new MediaCCCConferenceKiosk(
|
(streamingService, url, kioskId) -> new MediaCCCConferenceKiosk(
|
||||||
MediaCCCService.this,
|
MediaCCCService.this,
|
||||||
h.fromUrl(url),
|
conferenceLLHF.fromUrl(url),
|
||||||
kioskId
|
kioskId
|
||||||
),
|
),
|
||||||
h,
|
conferenceLLHF,
|
||||||
MediaCCCConferenceKiosk.KIOSK_ID
|
MediaCCCConferenceKiosk.KIOSK_ID
|
||||||
);
|
);
|
||||||
|
|
||||||
list.addKioskEntry(
|
list.addKioskEntry(
|
||||||
(streamingService, url, kioskId) -> new MediaCCCRecentKiosk(
|
(streamingService, url, kioskId) -> new MediaCCCRecentKiosk(
|
||||||
MediaCCCService.this,
|
MediaCCCService.this,
|
||||||
h.fromUrl(url),
|
recentLLHF.fromUrl(url),
|
||||||
kioskId
|
kioskId
|
||||||
),
|
),
|
||||||
h,
|
recentLLHF,
|
||||||
MediaCCCRecentKiosk.KIOSK_ID
|
MediaCCCRecentKiosk.KIOSK_ID
|
||||||
);
|
);
|
||||||
|
|
||||||
list.addKioskEntry(
|
list.addKioskEntry(
|
||||||
(streamingService, url, kioskId) -> new MediaCCCLiveStreamKiosk(
|
(streamingService, url, kioskId) -> new MediaCCCLiveStreamKiosk(
|
||||||
MediaCCCService.this,
|
MediaCCCService.this,
|
||||||
h.fromUrl(url),
|
liveLLHF.fromUrl(url),
|
||||||
kioskId
|
kioskId
|
||||||
),
|
),
|
||||||
h,
|
liveLLHF,
|
||||||
MediaCCCLiveStreamKiosk.KIOSK_ID
|
MediaCCCLiveStreamKiosk.KIOSK_ID
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue