Merge pull request #13161 from jpds/outdated-subscription-shuffle

FeedLoadManager: Shuffle the order outdated subscriptions are updated in
This commit is contained in:
Tobi 2026-02-06 02:13:56 -08:00 committed by GitHub
commit 56a043669a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -111,7 +111,8 @@ class FeedLoadManager(private val context: Context) {
broadcastProgress()
}
.observeOn(Schedulers.io())
.flatMap { Flowable.fromIterable(it) }
// Randomize user subscription ordering to attempt to resist fingerprinting
.flatMap { Flowable.fromIterable(it.shuffled()) }
.takeWhile { !cancelSignal.get() }
.doOnNext { subscriptionEntity ->
// throttle YouTube extractions once every BATCH_SIZE to avoid being rate limited