FeedLoadManager: Shuffle the order outdated subscriptions are updated in

This commit is contained in:
Jonathan Davies 2026-01-31 13:23:14 +00:00
parent 739b6ae57b
commit ae60f7d7eb
No known key found for this signature in database

View file

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