Modern Apps git

← Modern-Apps.git

youpipe: re-enable SABR to match PipePipe latest (un-gate extractor stream building)

Commit
41d000f9f5b9a9a16e9b37d84cd43be275f7b78a
Author
vayun-mathur <[email protected]>
When
2026-08-16 16:44 UTC (3 months ago)
Parents
79d1aec

Diff

youpipe/extractor/src/main/kotlin/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.kt
diff --git a/youpipe/extractor/src/main/kotlin/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.kt b/youpipe/extractor/src/main/kotlin/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.ktindex 5999c332ef..eee6dd6891 100644--- a/youpipe/extractor/src/main/kotlin/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.kt+++ b/youpipe/extractor/src/main/kotlin/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.kt@@ -688,12 +688,10 @@ class YoutubeStreamExtractor(             ADAPTIVE_FORMATS, ItagItem.ItagType.AUDIO,             getAudioStreamBuilderHelper(), "audio"         )-        // SABR is a last-resort fallback: only probe/append it when the ANDROID_VR direct-        // client returned no usable streams.-        if (streams.isEmpty()) {-            buildSabrStreamsIfNeeded()-            streams.addAll(sabrAudioStreams)-        }+        // SABR is built alongside the ANDROID_VR direct streams (matching PipePipe's+        // re-enabled SABR path); the app merges/dedups progressive + SABR downstream.+        buildSabrStreamsIfNeeded()+        streams.addAll(sabrAudioStreams)         return streams     } @@ -713,12 +711,10 @@ class YoutubeStreamExtractor(             ADAPTIVE_FORMATS, ItagItem.ItagType.VIDEO_ONLY,             getVideoStreamBuilderHelper(true), "video-only"         )-        // SABR is a last-resort fallback: only probe/append it when the ANDROID_VR direct-        // client returned no usable streams.-        if (streams.isEmpty()) {-            buildSabrStreamsIfNeeded()-            streams.addAll(sabrVideoOnlyStreams)-        }+        // SABR is built alongside the ANDROID_VR direct streams (matching PipePipe's+        // re-enabled SABR path); the app merges/dedups progressive + SABR downstream.+        buildSabrStreamsIfNeeded()+        streams.addAll(sabrVideoOnlyStreams)         return streams     }