Skip to content

[MediaCCC] Fix regressions and improve MediaCCCLiveStreamKioskExtractor#1097

Open
TobiGr wants to merge 1 commit into
devfrom
ccc
Open

[MediaCCC] Fix regressions and improve MediaCCCLiveStreamKioskExtractor#1097
TobiGr wants to merge 1 commit into
devfrom
ccc

Conversation

@TobiGr

@TobiGr TobiGr commented Aug 19, 2023

Copy link
Copy Markdown
Contributor
  • I carefully read the contribution guidelines and agree to them.
  • I have tested the API against NewPipe.
  • I agree to create a pull request for NewPipe as soon as possible to make it compatible with the changed API.

Changes

  • Fix wrong ListLinkHandlerFactories for kiosks. Regression introduced in Add support for channel tabs and channel tags #1082. I checked for similar regressions, but did not find any. was already done in a separate PR.
  • Live stream kiosk: detect pause "talks" segments. Add and improve tests for MediaCCCLiveStreamKioskExtractor:
    • test stream items if a live stream is running
    • use mock tests to check live talk extraction and testing conferences

This re-introduces the @MockOnlyannotation for classes and MockOnlyCondition for tests removed in #1332

To Do

  • Make MediaCCCLiveStreamListExtractorTest.[PreparationTest|LiveConferenceTest] always use mocks.

@TobiGr TobiGr added bug Issue or PR is related to a bug media.ccc.de Service, https://media.ccc.de labels Aug 19, 2023
@TobiGr TobiGr marked this pull request as draft August 19, 2023 18:48
@TobiGr TobiGr force-pushed the ccc branch 3 times, most recently from 8d83786 to e9c38bd Compare August 19, 2023 19:37
@TobiGr TobiGr marked this pull request as ready for review August 19, 2023 19:41
@AudricV AudricV changed the title Fix regressions and improve MediaCCCLiveStreamKioskExtractor [MediaCCC] Fix regressions and improve MediaCCCLiveStreamKioskExtractor Sep 23, 2023
public String getName() throws ParsingException {
return roomInfo.getObject("talks").getObject("current").getString("title");
if (isBreak()) {
return roomInfo.getString("display") + " - Pause";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How MediaCCC's website displays paused rooms? I don't think hardcoding - Pause at the end of a room name is a good idea for localization purposes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

what else do you suggest? just remove it? Or use "Break"?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't know so let's use this for now :P

Add and improve tests for MediaCCCLiveStreamKioskExtractor:
- test stream items if a live stream is running
- use mock tests to check live talk extraction and testing conferences
@sonarqubecloud

sonarqubecloud Bot commented Jun 7, 2026

Copy link
Copy Markdown

@TobiGr

TobiGr commented Jun 7, 2026

Copy link
Copy Markdown
Contributor Author

Failing tests are unrelated

@AudricV AudricV dismissed their stale review June 7, 2026 15:00

Outdated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue or PR is related to a bug media.ccc.de Service, https://media.ccc.de

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants