You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[YouTube] Don't generate manifests for post live streams when loading the stream info
Like for OTF streams, to prevent errors, unused requests, and improve the content loading.
Add getters and setter for ItagInfo objects. Fields of this class are now private.
Add some unknown constants and some JavaDocs
Copy file name to clipboardExpand all lines: extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java
+21-35Lines changed: 21 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -515,9 +515,9 @@ public List<AudioStream> getAudioStreams() throws ExtractionException {
515
515
try {
516
516
for (finalItagInfoitagInfo : getItags(ADAPTIVE_FORMATS,
517
517
ItagItem.ItagType.AUDIO)) {
518
-
finalItagItemitag = itagInfo.itagItem;
519
-
finalStringcontent = itagInfo.content;
520
-
finalbooleanisUrl = itagInfo.isUrl;
518
+
finalItagItemitag = itagInfo.getItagItem();
519
+
finalStringcontent = itagInfo.getContent();
520
+
finalbooleanisUrl = itagInfo.getIsUrl();
521
521
finalAudioStreamaudioStream;
522
522
523
523
if (streamType == StreamType.VIDEO_STREAM) {
@@ -560,9 +560,9 @@ public List<VideoStream> getVideoStreams() throws ExtractionException {
560
560
561
561
try {
562
562
for (finalItagInfoitagInfo : getItags(FORMATS, ItagItem.ItagType.VIDEO)) {
563
-
finalItagItemitag = itagInfo.itagItem;
564
-
finalStringcontent = itagInfo.content;
565
-
finalbooleanisUrl = itagInfo.isUrl;
563
+
finalItagItemitag = itagInfo.getItagItem();
564
+
finalStringcontent = itagInfo.getContent();
565
+
finalbooleanisUrl = itagInfo.getIsUrl();
566
566
finalVideoStreamvideoStream;
567
567
568
568
if (streamType == StreamType.VIDEO_STREAM) {
@@ -605,9 +605,9 @@ public List<VideoStream> getVideoOnlyStreams() throws ExtractionException {
605
605
try {
606
606
for (finalItagInfoitagInfo : getItags(ADAPTIVE_FORMATS,
0 commit comments