Skip to content

Issue#12490#12607

Closed
cp89cyber wants to merge 2 commits intoTeamNewPipe:devfrom
cp89cyber:issue#12490
Closed

Issue#12490#12607
cp89cyber wants to merge 2 commits intoTeamNewPipe:devfrom
cp89cyber:issue#12490

Conversation

@cp89cyber
Copy link
Copy Markdown

@cp89cyber cp89cyber commented Sep 6, 2025

Summary

  • Added a fallback path for kiosk loading when the extractor cannot provide a channel name, allowing the kiosk loader to return a valid KioskInfo instead of failing

  • Implemented getKioskInfoFallback, which reconstructs the kiosk info using the kiosk’s ID and populates items and pagination details from the extractor

Testing

  • ❌ ./gradlew testDebugUnitTest (fails: uname and xargs not available, preventing Gradle from starting)

Fixes #12490

@github-actions github-actions Bot added the size/small PRs with less than 50 changed lines label Sep 6, 2025
@@ -204,6 +217,33 @@ public static Single<InfoItemsPage<StreamInfoItem>> getMoreKioskItems(final int
KioskInfo.getMoreItems(NewPipe.getService(serviceId), url, nextPage));
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn’t this have fallback code as well? Might fail when scrolling down otherwise

Comment on lines +233 to +237
final Constructor<KioskInfo> constructor = KioskInfo.class
.getDeclaredConstructor(int.class, ListLinkHandler.class, String.class);
constructor.setAccessible(true);
final KioskInfo info = constructor.newInstance(extractor.getServiceId(),
extractor.getLinkHandler(), name);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We control the library, I’d avoid the reflection

@Stypox
Copy link
Copy Markdown
Member

Stypox commented Sep 9, 2025

I don't think this is the way to solve it: it seems like the channel is not available at all, and what should rather be done is to make NewPipeExtractor notice when a channel is not available. But we could indeed make the extraction of the name non mandatory.

@cp89cyber cp89cyber closed this by deleting the head repository Sep 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/small PRs with less than 50 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trending Podcasts returns no result (empty)

3 participants