-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MediaCCC] Fix regressions and improve MediaCCCLiveStreamKioskExtractor #1097
base: dev
Are you sure you want to change the base?
Conversation
Regression introduced in #1082
8d83786
to
e9c38bd
Compare
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
} | ||
|
||
@Override | ||
public String getName() throws ParsingException { | ||
return roomInfo.getObject("talks").getObject("current").getString("title"); | ||
if (isBreak()) { | ||
return roomInfo.getString("display") + " - Pause"; |
There was a problem hiding this comment.
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.
* <p>Reset cached live stream data.</p> | ||
* This is a temporary method which can be used to reset the cached live stream data until a | ||
* caching policy for {@link #getLiveStreams(Downloader, Localization)} is implemented. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* <p>Reset cached live stream data.</p> | |
* This is a temporary method which can be used to reset the cached live stream data until a | |
* caching policy for {@link #getLiveStreams(Downloader, Localization)} is implemented. | |
* Reset cached live stream data. | |
* | |
* <p> | |
* This is a temporary method which can be used to reset the cached live stream data until a | |
* caching policy for {@link #getLiveStreams(Downloader, Localization)} is implemented. | |
* </p> |
* Clears static media.ccc.de states. | ||
* <p>This method needs to be called in every class before running and recording mock tests.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Clears static media.ccc.de states. | |
* <p>This method needs to be called in every class before running and recording mock tests.</p> | |
* Clears static MediaCCC states. | |
* | |
* <p> | |
* This method needs to be called in every class before running and recording mock tests. | |
* </p> |
Changes
MediaCCCLiveStreamKioskExtractor
:To Do
MediaCCCLiveStreamListExtractorTest.[PreparationTest|LiveConferenceTest]
always use mocks.