-
Notifications
You must be signed in to change notification settings - Fork 421
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
[media.ccc.de] Fix live stream extraction #767
base: dev
Are you sure you want to change the base?
Conversation
d556c84
to
62699e5
Compare
.../org/schabi/newpipe/extractor/services/media_ccc/extractors/MediaCCCLiveStreamExtractor.java
Outdated
Show resolved
Hide resolved
62699e5
to
124a9e1
Compare
...st/java/org/schabi/newpipe/extractor/services/media_ccc/MediaCCCLiveStreamExtractorTest.java
Outdated
Show resolved
Hide resolved
The API was slightly changed and only HLS streams are provided anymore. Add a basic test for to check whether the required streamInfo fields are available. Closes #766
124a9e1
to
752825c
Compare
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.
Thank you! Could you provide an apk?
if (streamInfo.videoStreams.isEmpty() | ||
&& streamInfo.audioStreams.isEmpty() | ||
&& isNullOrEmpty(streamInfo.getHlsUrl()) | ||
&& isNullOrEmpty(streamInfo.getDashMpdUrl())) { |
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.
Mmmh, I think before only videoStreams and audioStreams were checked because in any other case the stream is a livestream. So NewPipe's player expected to need to use hls/dash urls only on livestreams. Does this change break that workflow, or is the check being done differently by NewPipe and so this is not an issue?
The API was slightly changed and only HLS streams are provided anymore.
Add a basic test for to check whether the required streamInfo fields are available.
Fixes #766