Skip to content

Commit ae60f7d

Browse files
committed
FeedLoadManager: Shuffle the order outdated subscriptions are updated in
1 parent 739b6ae commit ae60f7d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/local/feed/service/FeedLoadManager.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ class FeedLoadManager(private val context: Context) {
111111
broadcastProgress()
112112
}
113113
.observeOn(Schedulers.io())
114-
.flatMap { Flowable.fromIterable(it) }
114+
// Randomize user subscription ordering to attempt to resist fingerprinting
115+
.flatMap { Flowable.fromIterable(it.shuffled()) }
115116
.takeWhile { !cancelSignal.get() }
116117
.doOnNext { subscriptionEntity ->
117118
// throttle YouTube extractions once every BATCH_SIZE to avoid being rate limited

0 commit comments

Comments
 (0)