File tree Expand file tree Collapse file tree 1 file changed +0
-27
lines changed
extractor/src/main/java/org/schabi/newpipe/extractor/services/peertube/extractors Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -429,11 +429,6 @@ private void tryExtractStreams() throws ParsingException {
429429 audioStreams = new ArrayList <>();
430430 videoStreams = new ArrayList <>();
431431
432- if (isLive ()) {
433- extractLiveVideoStreams ();
434- return ;
435- }
436-
437432 // Progressive streams
438433 try {
439434 addStreamsFromArray (
@@ -456,28 +451,6 @@ private void tryExtractStreams() throws ParsingException {
456451 }
457452 }
458453
459- private void extractLiveVideoStreams () throws ParsingException {
460- try {
461- json .getArray (STREAMING_PLAYLISTS )
462- .stream ()
463- .filter (JsonObject .class ::isInstance )
464- .map (JsonObject .class ::cast )
465- // TODO Check! This is the master playlist!
466- .map (s -> new SimpleVideoAudioStreamImpl (
467- VideoAudioFormatRegistry .MPEG_4 ,
468- new SimpleHLSDeliveryDataImpl (s .getString (PLAYLIST_URL , "" )))
469- )
470- // Don't use the containsSimilarStream method because it will always
471- // return
472- // false so if there are multiples HLS URLs returned, only the first
473- // will be
474- // extracted in this case.
475- .forEachOrdered (videoStreams ::add );
476- } catch (final Exception e ) {
477- throw new ParsingException ("Could not get video streams" , e );
478- }
479- }
480-
481454 private void addStreamsFromArray (
482455 @ Nonnull final JsonArray streams ,
483456 final String playlistUrl
You can’t perform that action at this time.
0 commit comments