1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-25 12:32:31 +01:00

Fix loading feed when a channel tab is empty

This commit is contained in:
Stypox 2023-04-25 19:01:02 +02:00
parent 6b3a178f2a
commit 1519527356
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23

View File

@ -165,7 +165,9 @@ class FeedLoadManager(private val context: Context) {
}
.flatMap { (channelTabInfo, linkHandler) ->
errors.addAll(channelTabInfo.errors)
if (channelTabInfo.relatedItems.isEmpty()) {
if (channelTabInfo.relatedItems.isEmpty() &&
channelTabInfo.nextPage != null
) {
val infoItemsPage = getMoreChannelTabItems(
subscriptionEntity.serviceId,
linkHandler, channelTabInfo.nextPage