Skip to content

Commit

Permalink
[media.ccc.de] Fix wrong ListLinkHandlerFactories for kiosks
Browse files Browse the repository at this point in the history
Regression introduced in #1082
  • Loading branch information
TobiGr committed Aug 19, 2023
1 parent 1f08d28 commit 55a2af2
Showing 1 changed file with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
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.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.MediaCCCStreamLinkHandlerFactory;
import org.schabi.newpipe.extractor.stream.StreamExtractor;
Expand Down Expand Up @@ -112,37 +114,41 @@ public SuggestionExtractor getSuggestionExtractor() {
@Override
public KioskList getKioskList() throws ExtractionException {
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.:
try {
list.addKioskEntry(
(streamingService, url, kioskId) -> new MediaCCCConferenceKiosk(
MediaCCCService.this,
h.fromUrl(url),
conferenceLLHF.fromUrl(url),
kioskId
),
h,
conferenceLLHF,
MediaCCCConferenceKiosk.KIOSK_ID
);

list.addKioskEntry(
(streamingService, url, kioskId) -> new MediaCCCRecentKiosk(
MediaCCCService.this,
h.fromUrl(url),
recentLLHF.fromUrl(url),
kioskId
),
h,
recentLLHF,
MediaCCCRecentKiosk.KIOSK_ID
);

list.addKioskEntry(
(streamingService, url, kioskId) -> new MediaCCCLiveStreamKiosk(
MediaCCCService.this,
h.fromUrl(url),
liveLLHF.fromUrl(url),
kioskId
),
h,
liveLLHF,
MediaCCCLiveStreamKiosk.KIOSK_ID
);

Expand Down

0 comments on commit 55a2af2

Please sign in to comment.